Fix for CGO and 1.4

This commit is contained in:
Derek Collison
2015-06-16 16:38:08 -07:00
parent c1537a5b9d
commit 5a2898e4f3

View File

@@ -2,8 +2,7 @@ FROM google/golang:1.4
MAINTAINER Derek Collison <derek@apcera.com>
# Note need CGO_ENABLED=0 go build -a -installsuffix cgo for 1.4
RUN CGO_ENABLED=0 go get -a -ldflags '-s' github.com/apcera/gnatsd
RUN CGO_ENABLED=0 go get -a -ldflags '-s' --installsuffix cgo github.com/apcera/gnatsd
COPY Dockerfile.final /gopath/bin/Dockerfile
CMD docker build -t apcera/gnatsd /gopath/bin