add CGO_ENABLED=0 back to docker images / goreleaser config

This commit is contained in:
henrygd
2025-02-19 21:05:31 -05:00
parent 25b70af196
commit 79eb42d04d
3 changed files with 9 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ RUN update-ca-certificates
# Build
ARG TARGETOS TARGETARCH
RUN GOGC=75 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-w -s" -o /beszel ./cmd/hub
RUN CGO_ENABLED=0 GOGC=75 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-w -s" -o /beszel ./cmd/hub
# ? -------------------------
FROM scratch