mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 20:15:46 +08:00
修改 docker 编译
This commit is contained in:
@@ -16,9 +16,11 @@ cd /server
|
|||||||
|
|
||||||
#go mod tidy
|
#go mod tidy
|
||||||
|
|
||||||
ldflags="-s -w -extldflags '-static' -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$(date -Iseconds)"
|
#-extldflags '-static'
|
||||||
|
|
||||||
go build -o anylink -trimpath -ldflags "$ldflags"
|
ldflags="-s -w -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$(date -Iseconds)"
|
||||||
|
|
||||||
|
go build -v -o anylink -trimpath -ldflags "$ldflags"
|
||||||
|
|
||||||
ls -l /server/
|
ls -l /server/
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user