From 5f7728befee6bc199246d22ae182d0fa30b2d22e Mon Sep 17 00:00:00 2001 From: Ethan Mosbaugh Date: Tue, 16 Jul 2024 15:36:43 -0700 Subject: [PATCH] f --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b3e028e..16c4d10 100644 --- a/Makefile +++ b/Makefile @@ -114,7 +114,10 @@ test: manifests fmt vet envtest ## Run tests. .PHONY: build build: ## Build manager binary. - CGO_ENABLED=0 go build -o bin/manager main.go + go build \ + -tags osusergo,netgo \ + -ldflags="-s -w -extldflags=-static" \ + -o bin/manager main.go .PHONY: run run: manifests fmt vet ## Run a controller from your host.