docker: reproducible builds within docker

This commit is contained in:
WeebDataHoarder
2025-04-23 07:54:49 +02:00
parent a4bbe474db
commit 1f6e705cbe
3 changed files with 18 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ ENV GOOS=${TARGETOS}
ENV GOARCH=${TARGETARCH}
ENV GOTOOLCHAIN=${GOTOOLCHAIN}
RUN go build -pgo=auto -v -trimpath -o "${GOBIN}/go-away" ./cmd/go-away
RUN go build -pgo=auto -v -trimpath -ldflags=-buildid= -o "${GOBIN}/go-away" ./cmd/go-away
RUN test -e "${GOBIN}/go-away"