From c0d83b80fc92fa27dff8f8d3cf80e386cada421c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20Lehmann-B=C3=B6hm?= Date: Fri, 8 May 2026 16:30:42 +0200 Subject: [PATCH] feat: update images in the template Dockerfile This commit updates the images used in the template Dockerfile to the latest versions as of writing: - golang:1.25.10: the latest 1.25 version which is used in the initial go.mod file generated by Go 1.26 - gcr.io/distroless/static:nonroot --- _template/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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