11# syntax=docker/dockerfile:1
22
3+ # GO_VERSION sets the version of the golang base image to use.
4+ # It must be a valid tag in the docker.io/library/golang image repository.
35ARG GO_VERSION=1.25.8
4- ARG DEBIAN_VERSION=bookworm
56
7+ # BASE_DEBIAN_DISTRO sets the golang base image debian variant to use.
8+ # It must be a valid variant in the docker.io/library/golang image repository.
9+ ARG BASE_DEBIAN_DISTRO=bookworm
10+
11+ # XX_VERSION sets the version of the xx utility to use.
12+ # It must be a valid tag in the docker.io/tonistiigi/xx image repository.
613ARG XX_VERSION=1.7.0
14+
15+ # OSXCROSS_VERSION sets the MacOSX cross toolchain to use.
16+ # It must be a valid tag in the docker.io/crazymax/osxcross image repository.
717ARG OSXCROSS_VERSION=11.3-r8-debian
18+
19+ # GOLANGCI_LINT_VERSION sets the version of the golangci-lint image to use.
20+ # It must be a valid tag in the docker.io/golangci/golangci-lint image repository.
821ARG GOLANGCI_LINT_VERSION=v2.8
922
23+ # PACKAGE sets the package name to print in the "--version" output.
24+ # It sets the "github.com/docker/docker-credential-helpers/credentials.Package
25+ # variable at compile time.
1026ARG PACKAGE=github.com/docker/docker-credential-helpers
1127
1228# xx is a helper for cross-compilation
@@ -15,7 +31,7 @@ FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
1531# osxcross contains the MacOSX cross toolchain for xx
1632FROM crazymax/osxcross:${OSXCROSS_VERSION} AS osxcross
1733
18- FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-${DEBIAN_VERSION } AS gobase
34+ FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-${BASE_DEBIAN_DISTRO } AS gobase
1935COPY --from=xx / /
2036RUN apt-get update && apt-get install -y --no-install-recommends clang dpkg-dev file git lld llvm make pkg-config rsync
2137ENV GOFLAGS="-mod=vendor"
0 commit comments