infra: pocketbase release

This commit is contained in:
Andras Bacsai
2022-12-02 09:41:22 +01:00
parent ad4b974274
commit da638c270f
2 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
FROM alpine:3.17
ARG BUILDARCH
ARG PB_VERSION=0.8.0
RUN apk add --no-cache \
unzip \
ca-certificates
ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_${BUILDARCH}.zip /tmp/pb.zip
RUN unzip /tmp/pb.zip -d /app/
RUN rm /tmp/pb.zip
EXPOSE 8080
CMD ["/app/pocketbase", "serve", "--http=0.0.0.0:8080"]