diff --git a/deploy/runtime/boot/hwlab-user-billing.sh b/deploy/runtime/boot/hwlab-user-billing.sh index 3cebd2c8..88c5bbac 100644 --- a/deploy/runtime/boot/hwlab-user-billing.sh +++ b/deploy/runtime/boot/hwlab-user-billing.sh @@ -11,6 +11,7 @@ export GOMODCACHE="${GOMODCACHE:-/opt/hwlab-env/go/pkg/mod}" export GOCACHE="${GOCACHE:-/opt/hwlab-env/go/cache}" export GOPROXY="${GOPROXY:-https://goproxy.cn,direct}" export GOTOOLCHAIN="${GOTOOLCHAIN:-local}" +export CGO_ENABLED="${CGO_ENABLED:-0}" mkdir -p "$GOMODCACHE" "$GOCACHE" /tmp/hwlab-user-billing go build -trimpath -o /tmp/hwlab-user-billing/hwlab-user-billing ./cmd/hwlab-user-billing