Merge pull request #183 from ijc/static-builds

Build a static binary
This commit is contained in:
Justin Cormack 2017-11-17 14:43:08 +00:00 committed by GitHub
commit f85e019d2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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