aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2017-07-27 14:34:56 -0700
committerGravatar GitHub <noreply@github.com> 2017-07-27 14:34:56 -0700
commit64353d8f3b72dda433edaf529269427d56f5b337 (patch)
treedb51b084c8507952d4fdc8e54ac81dab6f88d554 /Makefile
parent10d354b784bf202a5f3efcb11e235780433d1b96 (diff)
downloadcoredns-64353d8f3b72dda433edaf529269427d56f5b337.tar.gz
coredns-64353d8f3b72dda433edaf529269427d56f5b337.tar.zst
coredns-64353d8f3b72dda433edaf529269427d56f5b337.zip
Use pre_build hook in docker hub to build the coredns binary (#799)
and skip the download process. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index f4bfd2686..8f141ba4e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ all: coredns
# TODO: Add .go file dependencies.
.PHONY: coredns
coredns: check godeps
- go build $(BUILD_VERBOSE) -ldflags="-s -w"
+ CGO_ENABLED=0 go build $(BUILD_VERBOSE) -ldflags="-s -w"
.PHONY: deps
deps: core/zmiddleware.go core/dnsserver/zdirectives.go godeps