Skip to content

Commit f8fe7bb

Browse files
authored
Merge pull request #358 from crazy-max/static-trixie
update to debian trixie for static builds
2 parents 62ab921 + 901154a commit f8fe7bb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docker-bake.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ target "_distro-static" {
181181
DISTRO_RELEASE = "static"
182182
DISTRO_ID = ""
183183
DISTRO_SUITE = ""
184-
DISTRO_IMAGE = DISTRO_IMAGE != null && DISTRO_IMAGE != "" ? DISTRO_IMAGE : "debian:bookworm"
184+
DISTRO_IMAGE = DISTRO_IMAGE != null && DISTRO_IMAGE != "" ? DISTRO_IMAGE : "debian:trixie"
185185
TEST_ONLY = "0"
186186
}
187187
}

pkg/compose/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ FROM scratch AS scripts
4040
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
4141

4242
# osxcross contains the MacOSX SDK for xx
43-
FROM dockercore/golang-cross:xx-sdk-extras AS osxsdk
43+
FROM crazymax/osxcross:15.5-alpine AS osxcross
4444

4545
# go base image to retrieve /usr/local/go
4646
FROM ${GO_IMAGE}:${GO_VERSION}-${GO_IMAGE_VARIANT} AS go
@@ -217,7 +217,7 @@ RUN --mount=type=bind,source=scripts/pkg-static-build.sh,target=/usr/local/bin/p
217217
--mount=type=bind,from=scripts,source=fix-cc.sh,target=/usr/local/bin/fix-cc \
218218
--mount=type=bind,from=src,source=/src,target=/usr/local/src/compose \
219219
--mount=type=bind,from=gocross,source=/usr/local/go,target=/usr/local/go,rw \
220-
--mount=from=osxsdk,target=/xx-sdk,src=/xx-sdk \
220+
--mount=type=bind,from=osxcross,src=/osxsdk,target=/xx-sdk \
221221
OUTDIR=/out BUILDDIR=/build SRCDIR=/usr/local/src/compose pkg-static-build
222222

223223
FROM builder-static-$TARGETOS AS builder-static

0 commit comments

Comments
 (0)