fix: disable cgo for user billing runtime (#1135)
This commit is contained in:
@@ -11,6 +11,7 @@ export GOMODCACHE="${GOMODCACHE:-/opt/hwlab-env/go/pkg/mod}"
|
|||||||
export GOCACHE="${GOCACHE:-/opt/hwlab-env/go/cache}"
|
export GOCACHE="${GOCACHE:-/opt/hwlab-env/go/cache}"
|
||||||
export GOPROXY="${GOPROXY:-https://goproxy.cn,direct}"
|
export GOPROXY="${GOPROXY:-https://goproxy.cn,direct}"
|
||||||
export GOTOOLCHAIN="${GOTOOLCHAIN:-local}"
|
export GOTOOLCHAIN="${GOTOOLCHAIN:-local}"
|
||||||
|
export CGO_ENABLED="${CGO_ENABLED:-0}"
|
||||||
|
|
||||||
mkdir -p "$GOMODCACHE" "$GOCACHE" /tmp/hwlab-user-billing
|
mkdir -p "$GOMODCACHE" "$GOCACHE" /tmp/hwlab-user-billing
|
||||||
go build -trimpath -o /tmp/hwlab-user-billing/hwlab-user-billing ./cmd/hwlab-user-billing
|
go build -trimpath -o /tmp/hwlab-user-billing/hwlab-user-billing ./cmd/hwlab-user-billing
|
||||||
|
|||||||
Reference in New Issue
Block a user