Skip to content

Commit

Permalink
fix: Disable CGO in order to be able to run in distroless container
Browse files Browse the repository at this point in the history
  • Loading branch information
keskad committed Nov 27, 2023
1 parent cf1b196 commit 8c6cfb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ PATH = $(LOCALBIN):$(shell echo $$PATH)
.PHONY: build
build: fmt vet ## Build manager binary.
@mkdir -p $(LOCALBIN)
go build -o $(LOCALBIN)/${BIN_NAME} main.go
CGO_ENABLED=0 GOOS=linux go build -o $(LOCALBIN)/${BIN_NAME} main.go

run:
./.build/p${BIN_NAME} --debug
Expand Down

0 comments on commit 8c6cfb0

Please sign in to comment.