Build a static binary so the scratch image runs (closes #126) #130

Merged
clawbot merged 1 commits from issue-126-static-binary into next 2026-10-04 08:48:53 +02:00
1 Commits
Author SHA1 Message Date
sneak 17d2631984 Build a static binary so the scratch image runs (closes #126)
check / check (push) Waiting to run
The final stage is scratch, which has no C library, but the builder
compiled mfer with cgo on (the golang image's default). The binary
imports net (mfer's own HTTP code does, and so does google/uuid), so
with cgo on it came out dynamically linked and the image could not
start. The image's go build now sets CGO_ENABLED=0; nothing in mfer
needs cgo. A new builder step runs ldd on the binary and fails the
build unless it reports a static executable.

Model: opus-5-5
2026-10-04 05:57:27 +00:00