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>
This commit is contained in:
Yong Tang
2017-07-27 14:34:56 -07:00
committed by GitHub
parent 10d354b784
commit 64353d8f3b
4 changed files with 8 additions and 20 deletions

View File

@@ -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