Disable CGO so as to build a static binary

https://github.com/linuxkit/kubernetes/pull/1#issuecomment-345253075 lead to
https://circleci.com/gh/linuxkit/kubernetes/15

Signed-off-by: Ian Campbell <ijc@docker.com>
This commit is contained in:
Ian Campbell 2017-11-17 14:21:17 +00:00
parent eceb6d11f8
commit 532b41ff8b

View File

@ -9,7 +9,7 @@ PREFIX?=/usr/local
GOMETALINTER:=$(shell command -v gometalinter 2> /dev/null)
dist/moby dist/moby-$(GOOS): $(DEPS)
go build \
CGO_ENABLED=0 go build \
--ldflags "-X main.GitCommit=$(GIT_COMMIT) -X main.Version=$(VERSION)" \
-o $@ ./cmd/moby