From 1b23686a4e8157069411cf6fb6dde820bc434aa1 Mon Sep 17 00:00:00 2001 From: Adrian Berger Date: Fri, 18 Aug 2023 11:40:56 +0200 Subject: [PATCH] Switch from alpine to scratch base image --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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