From 38fcba89ef313151e29de17a96904738fade9ee2 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 6 Jun 2021 20:56:18 +0800 Subject: [PATCH] remove GOOS and GOARCH from Dockerfile --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4403877b..c3b66c7e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,6 @@ RUN VERSION=`grep '"version": ' package.json | awk -F ':' '{print $2}' | tr -d ' && COMMIT_HASH=$(git rev-parse --short HEAD) \ && BUILD_UNIXTIME="$(date '+%s')" \ && VERSION_FLAGS="-X github.com/mayswind/ezbookkeeping/pkg/version.Version=${VERSION} -X github.com/mayswind/ezbookkeeping/pkg/version.CommitHash=${COMMIT_HASH} -X github.com/mayswind/ezbookkeeping/pkg/version.BuildUnixTime=${BUILD_UNIXTIME}" \ - && GOOS=linux \ - && GOARCH=amd64 \ && CGO_ENABLED=1 \ && go build -a -v -trimpath -ldflags "-w -linkmode external -extldflags '-static' ${VERSION_FLAGS}" -o ezbookkeeping ezbookkeeping.go RUN chmod +x ezbookkeeping