diff --git a/Dockerfile b/Dockerfile index 1362c76..9afee1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:latest +FROM alpine:latest as downloader ARG PB_VERSION=0.16.5 @@ -10,6 +10,10 @@ RUN apk add --no-cache \ ADD https://github.com/pocketbase/pocketbase/releases/download/v${PB_VERSION}/pocketbase_${PB_VERSION}_linux_amd64.zip /tmp/pb.zip RUN unzip /tmp/pb.zip -d /pb/ +FROM scratch + +COPY --from=downloader /pb/pocketbase /pb/pocketbase + EXPOSE 8080 # start PocketBase