Install Suffix in Build env
This commit is contained in:
parent
44a10de0f6
commit
9ac760da1c
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ RUN go get -d -v ./...
|
|||
# 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 .
|
||||
|
||||
RUN go build -o app .
|
||||
RUN go build -a -installsuffix cgo -o app .
|
||||
|
||||
FROM scratch as production
|
||||
WORKDIR /goshorly
|
||||
|
|
Loading…
Reference in a new issue