diff --git a/Dockerfile b/Dockerfile index f05fe3b..6d00e59 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /function . # Produce the Function image. We use a very lightweight 'distroless' image that # does not include any of the build tools used in previous stages. -FROM gcr.io/distroless/base-debian12 AS image +FROM gcr.io/distroless/static-debian12:nonroot AS image WORKDIR / COPY --from=build /function /function EXPOSE 9443