diff --git a/_template/Dockerfile b/_template/Dockerfile index a68b9d63..077b82ad 100644 --- a/_template/Dockerfile +++ b/_template/Dockerfile @@ -1,7 +1,7 @@ # syntax = docker/dockerfile:1.4 # get modules, if they don't change the cache can be used for faster builds -FROM golang:1.21.3@sha256:b113af1e8b06f06a18ad41a6b331646dff587d7a4cf740f4852d16c49ed8ad73 AS base +FROM golang:1.25.10@sha256:69a7b8cc06cfb629da20d23be8f8f359a1f823481ab1a14b4e1ece153ea1d1c0 AS base ENV GO111MODULE=on ENV CGO_ENABLED=0 ENV GOOS=linux @@ -23,7 +23,7 @@ RUN --mount=target=. \ # Import the binary from build stage -FROM gcr.io/distroless/static:nonroot@sha256:91ca4720011393f4d4cab3a01fa5814ee2714b7d40e6c74f2505f74168398ca9 as prd +FROM gcr.io/distroless/static:nonroot@sha256:47b2d72ff90843eb8a768b5c2f89b40741843b639d065b9b937b07cd59b479c6 as prd COPY --link --from=build /app/main / # this is the numeric version of user nonroot:nonroot to check runAsNonRoot in kubernetes USER 65532:65532