From a24fa29ba8d9b8ae198d6cb893f516e6117252ae Mon Sep 17 00:00:00 2001 From: Phil Date: Thu, 6 Jan 2022 19:20:57 +0100 Subject: [PATCH] Removed -installsuffix --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e1bc40a..9935c80 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 -a -installsuffix cgo -o app . +RUN go build -a -o app . FROM scratch as production WORKDIR /goshorly