File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
# syntax=docker/dockerfile:1
2
2
3
3
ARG GO_VERSION=1.21.10
4
+ ARG DEBIAN_VERSION=bookworm
5
+
4
6
ARG XX_VERSION=1.4.0
5
7
ARG OSXCROSS_VERSION=11.3-r7-debian
6
8
ARG GOLANGCI_LINT_VERSION=v1.55.2
@@ -14,7 +16,7 @@ FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
14
16
# osxcross contains the MacOSX cross toolchain for xx
15
17
FROM crazymax/osxcross:${OSXCROSS_VERSION} AS osxcross
16
18
17
- FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-bullseye AS gobase
19
+ FROM --platform=$BUILDPLATFORM golang:${GO_VERSION}-${DEBIAN_VERSION} AS gobase
18
20
COPY --from=xx / /
19
21
ARG DEBIAN_FRONTEND
20
22
RUN apt-get update && apt-get install -y --no-install-recommends clang dpkg-dev file git lld llvm make pkg-config rsync
55
57
FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION} AS golangci-lint
56
58
FROM gobase AS lint
57
59
ARG 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
59
61
RUN --mount=type=bind,target=. \
60
62
--mount=type=cache,target=/root/.cache \
61
63
--mount=from=golangci-lint,source=/usr/bin/golangci-lint,target=/usr/bin/golangci-lint \
@@ -64,7 +66,7 @@ RUN --mount=type=bind,target=. \
64
66
FROM gobase AS base
65
67
ARG TARGETPLATFORM
66
68
ARG 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
68
70
69
71
FROM base AS test
70
72
ARG DEBIAN_FRONTEND
You can’t perform that action at this time.
0 commit comments