From 9ac760da1caddb0c9034fc1b1a4904ae49620128 Mon Sep 17 00:00:00 2001 From: Phil Date: Thu, 6 Jan 2022 19:16:38 +0100 Subject: [PATCH] Install Suffix in Build env --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5fdee98..e1bc40a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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