Skip to content

Commit

Permalink
Fix for CGO and 1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Collison committed Jun 16, 2015
1 parent c1537a5 commit 5a2898e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ FROM google/golang:1.4

MAINTAINER Derek Collison <[email protected]>

# 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

0 comments on commit 5a2898e

Please sign in to comment.