diff --git a/Makefile b/Makefile index b9de93ffb..188e6373c 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,11 @@ build: "-X main.Version=$(VERSION)" \ ./cmd/telegraf/telegraf.go +build-for-docker: + CGO_ENABLED=0 GOOS=linux go build -o telegraf -ldflags \ + "-X main.Version=$(VERSION)" \ + ./cmd/telegraf/telegraf.go + # Build with race detector dev: prepare go build -race -o telegraf -ldflags \