From 07b7c772e001afd45e3db1e409cacddda7673a8a Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Thu, 13 Feb 2020 23:10:20 +0000 Subject: Build static binaries --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 0ea2c0d..c174da7 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,8 @@ GO_FILES := $(shell find . -name '*.go') dns-service: main.go $(GO_FILES) - go build -o $@ $< + CGO_ENABLED=0 go build -o $@ $< + +.PHONY: clean +clean: + rm -f dns-service -- cgit v1.2.3