mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2026-08-30 17:20:58 +08:00
1 line
401 B
Batchfile
1 line
401 B
Batchfile
docker run --rm -v C:/huawei/goproject/SamWaf:/src -w /src -e CGO_ENABLED=1 -e GOOS=linux -e GOARCH=amd64 -e GOPROXY=https://goproxy.cn,direct golang:1.25.9 sh -c "go build -v -ldflags='-X SamWaf/global.GWAF_RELEASE=true -X SamWaf/global.GWAF_RELEASE_VERSION_NAME=20260721 -X SamWaf/global.GWAF_RELEASE_VERSION=v1.3.23 -s -w -extldflags \"-static\"' -o /src/release/SamWafLinux64 ./cmd/samwaf/main.go" |