diff --git a/_template/Dockerfile b/_template/Dockerfile index d153558f..f79be85f 100644 --- a/_template/Dockerfile +++ b/_template/Dockerfile @@ -22,7 +22,7 @@ RUN --mount=target=. \ go build -ldflags="-w -s" -o /app/main ./cmd/{{.Base.appName}}/*.go # Import the binary from build stage -FROM gcr.io/distroless/static:nonroot@sha256:d8afc7d6973f357162e2283551cf3347b2bb847a03d24510ee837f289505f8e3 as prd +FROM gcr.io/distroless/static:nonroot@sha256:ed05c7a5d67d6beebeba19c6b9082a5513d5f9c3e22a883b9dc73ec39ba41c04 as prd COPY --from=build /app/main / # this is the numeric version of user nonroot:nonroot to check runAsNonRoot in kubernetes USER 65532:65532