mirror of
https://github.com/docker/compose.git
synced 2026-10-12 02:13:08 +00:00
Dockerfile: update golang image to alpine 3.23
The alpine 3.22 variant was removed.
Also updating the macOS SDK version to avoid errors when building
on alpine 3.23;
1.107 GO111MODULE=on go build -trimpath -tags "fsnotify,e2e" -ldflags "-w -X github.com/docker/compose/v5/internal.Version=61203c8" -o "/out/docker-compose" ./cmd
37.96 # runtime/cgo
37.96 clang: error: overriding deployment version from '10.16' to '11.0' [-Werror,-Woverriding-deployment-version]
39.77 make: *** [Makefile:61: build] Error 1
Signed-off-by: Sebastiaan van Stijn <[email protected]>
This commit is contained in:
committed by
Guillaume Lours
parent
e722917cb2
commit
ef5076f0ad
+2
-1
@@ -33,7 +33,7 @@ FROM crazymax/osxcross:15.5-alpine AS osxcross
|
||||
FROM golangci/golangci-lint:${GOLANGCI_LINT_VERSION}-alpine AS golangci-lint
|
||||
FROM ghcr.io/google/addlicense:${ADDLICENSE_VERSION} AS addlicense
|
||||
|
||||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION}-alpine3.22 AS base
|
||||
FROM --platform=${BUILDPLATFORM} golang:${GO_VERSION}-alpine3.23 AS base
|
||||
COPY --from=xx / /
|
||||
RUN apk add --no-cache \
|
||||
clang \
|
||||
@@ -78,6 +78,7 @@ FROM build-base AS build
|
||||
ARG BUILD_TAGS
|
||||
ARG BUILD_FLAGS
|
||||
ARG TARGETPLATFORM
|
||||
ARG MACOSX_VERSION_MIN=11.0
|
||||
RUN --mount=type=bind,target=. \
|
||||
--mount=type=cache,target=/root/.cache \
|
||||
--mount=type=cache,target=/go/pkg/mod \
|
||||
|
||||
Reference in New Issue
Block a user