We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ac733dc + 7a9842b commit 92dfefaCopy full SHA for 92dfefa
1 file changed
Dockerfile
@@ -1,9 +1,12 @@
1
# syntax=docker/dockerfile:1
2
3
+ARG GO_VERSION="1.25.4"
4
+ARG ALPINE_VERSION="3.22"
5
+
6
# xx is a helper for cross-compilation
7
FROM --platform=$BUILDPLATFORM tonistiigi/xx:1.7.0 AS xx
8
-FROM --platform=$BUILDPLATFORM golang:1.25.4-alpine3.22 AS builder-base
9
+FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder-base
10
COPY --from=xx / /
11
WORKDIR /src
12
RUN --mount=type=cache,target=/go/pkg/mod \
0 commit comments