1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

add CGO_ENABLED=0 while go build

This commit is contained in:
shivdudhani 2019-06-05 23:26:37 -07:00
parent 4cf3961536
commit 6dedcf3b87

View file

@ -23,7 +23,7 @@ GOOS ?= $(shell go env GOOS)
OUTPUT=$(shell pwd)/_output/cli/$(BIN) OUTPUT=$(shell pwd)/_output/cli/$(BIN)
build: build:
GOOS=linux go build -ldflags=$(LD_FLAGS) $(MAIN) CGO_ENABLED=0 GOOS=linux go build -ldflags=$(LD_FLAGS) $(MAIN)
local: local:
go build -ldflags=$(LD_FLAGS) $(MAIN) go build -ldflags=$(LD_FLAGS) $(MAIN)