diff --git a/.gitignore b/.gitignore index 7f6fd93..5fabb22 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,4 @@ eagle-layout cmd/consumer/consumer cmd/server/server coverage.txt -build +bin diff --git a/Makefile b/Makefile index ba162c3..4607d34 100644 --- a/Makefile +++ b/Makefile @@ -36,7 +36,7 @@ all: lint test build .PHONY: build # make build, Build the binary file build: - GOOS=linux GOARCH=amd64 go build -v -ldflags ${ldflags} -o bin/$(SERVICE_NAME) cmd/server/main.go cmd/server/wire_gen.go + CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -v -ldflags ${ldflags} -o bin/$(SERVICE_NAME) cmd/server/main.go cmd/server/wire_gen.go .PHONY: run # make run, run current project