File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# syntax=docker/dockerfile:1
22
33ARG GO_VERSION=1.21.10
4+ ARG DEBIAN_VERSION=bookworm
5+
46ARG XX_VERSION=1.4.0
57ARG OSXCROSS_VERSION=11.3-r7-debian
68ARG GOLANGCI_LINT_VERSION=v1.55.2
@@ -14,7 +16,7 @@ FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
1416# osxcross contains the MacOSX cross toolchain for xx
1517FROM crazymax/osxcross:${OSXCROSS_VERSION} AS osxcross
1618
17- FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-bullseye AS gobase
19+ FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-${DEBIAN_VERSION} AS gobase
1820COPY --from=xx / /
1921ARG DEBIAN_FRONTEND
2022RUN apt-get update && apt-get install -y --no-install-recommends clang dpkg-dev file git lld llvm make pkg-config rsync
5557FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION} AS golangci-lint
5658FROM gobase AS lint
5759ARG DEBIAN_FRONTEND
58- RUN apt-get install -y binutils gcc libc6-dev libgcc-10 -dev libsecret-1-dev pkg-config
60+ RUN apt-get install -y binutils gcc libc6-dev libgcc-11 -dev libsecret-1-dev pkg-config
5961RUN --mount=type=bind,target=. \
6062 --mount=type=cache,target=/root/.cache \
6163 --mount=from=golangci-lint,source=/usr/bin/golangci-lint,target=/usr/bin/golangci-lint \
@@ -64,7 +66,7 @@ RUN --mount=type=bind,target=. \
6466FROM gobase AS base
6567ARG TARGETPLATFORM
6668ARG DEBIAN_FRONTEND
67- RUN xx-apt-get install -y binutils gcc libc6-dev libgcc-10 -dev libsecret-1-dev pkg-config
69+ RUN xx-apt-get install -y binutils gcc libc6-dev libgcc-11 -dev libsecret-1-dev pkg-config
6870
6971FROM base AS test
7072ARG DEBIAN_FRONTEND
You can’t perform that action at this time.
0 commit comments