From 929ad8b78f718df878ba49550499030ac054a8a5 Mon Sep 17 00:00:00 2001 From: Michael Bumann Date: Sun, 27 Aug 2023 16:17:42 +0200 Subject: [PATCH] Try distroless docker which is potentially smaller? --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 486e3be3..19f9e702 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,10 @@ COPY . . RUN go build -o main # Start a new, final image to reduce size. -FROM alpine as final + +FROM gcr.io/distroless/static-debian11 + +USER small-user:small-user # Copy the binaries and entrypoint from the builder image. COPY --from=builder /build/main /bin/