修改 docker 编译

This commit is contained in:
bjdgy
2024-01-29 21:26:38 +08:00
parent ef3f2aba4c
commit 9099aea122
3 changed files with 4 additions and 5 deletions

View File

@@ -16,7 +16,9 @@ cd /server
#go mod tidy
go build -o anylink -trimpath -ldflags "-s -w -extldflags '-static' -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$buildDate"
ldflags="-s -w -extldflags '-static' -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$(date -Iseconds)"
go build -o anylink -trimpath -ldflags "$ldflags"
ls -l /server/