fix: restore gcc, musl-dev, python3 and py3-yaml to the image #4

Merged
markus merged 1 commits from claude/fix/restore-toolchain into master 2026-08-20 14:03:56 +00:00
Showing only changes of commit 5427ccbad2 - Show all commits
+11 -1
View File
@@ -33,6 +33,12 @@ USER root
# curl,tar -> setup-go / gitleaks download + extract their own arch-specific binaries
# make -> zegit Makefile targets
# ca-certificates -> trusted roots for HTTPS to gitea/github/goproxy
# gcc,musl-dev -> C toolchain for cgo; `go test -race` (the Makefile test
# target) requires cgo, which needs a C compiler + libc headers
# (musl on Alpine)
# python3,py3-yaml -> the repo's own gates are Python: credentials-coverage.sh,
# validate-admission.sh and feature-lint.sh all shell out to
# python3, and credentials-coverage parses manifests with yaml
#
# Go is intentionally NOT baked in: actions/setup-go fetches the pinned version
# per-run (node + tar are present), so the image needs no rebuild on Go bumps.
@@ -45,7 +51,11 @@ RUN apk add --no-cache \
curl \
tar \
make \
ca-certificates
ca-certificates \
gcc \
musl-dev \
python3 \
py3-yaml
# Match the runner pod's runAsUser (1000); keep the image non-root by default.
USER 1000