Install Suffix in Build env

This commit is contained in:
Phil 2022-01-06 19:16:38 +01:00
parent 44a10de0f6
commit 9ac760da1c

View file

@ -12,7 +12,7 @@ RUN go get -d -v ./...
# export I_GitBranch=$(git rev-parse --abbrev-ref HEAD) && \ # export I_GitBranch=$(git rev-parse --abbrev-ref HEAD) && \
# go build -a -installsuffix cgo -ldflags "-X $I_PACKAGE.GitCommitShort=$I_GitCommitShort -X $I_PACKAGE.GitBranch=$I_GitBranch" -o app . # go build -a -installsuffix cgo -ldflags "-X $I_PACKAGE.GitCommitShort=$I_GitCommitShort -X $I_PACKAGE.GitBranch=$I_GitBranch" -o app .
RUN go build -o app . RUN go build -a -installsuffix cgo -o app .
FROM scratch as production FROM scratch as production
WORKDIR /goshorly WORKDIR /goshorly