mirror of https://github.com/docker/docs.git
fix static compile with go 1.4
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
db35563311
commit
2d0d3c92b4
|
@ -4,7 +4,7 @@ COPY . /go/src/github.com/docker/swarm
|
|||
WORKDIR /go/src/github.com/docker/swarm
|
||||
|
||||
ENV GOPATH /go/src/github.com/docker/swarm/Godeps/_workspace:$GOPATH
|
||||
RUN CGO_ENABLED=0 go install -v -a -tags netgo -ldflags "-w -X github.com/docker/swarm/version.GITCOMMIT `git rev-parse --short HEAD`"
|
||||
RUN CGO_ENABLED=0 go install -v -a -tags netgo -installsuffix netgo -ldflags "-w -X github.com/docker/swarm/version.GITCOMMIT `git rev-parse --short HEAD`"
|
||||
|
||||
ENV SWARM_HOST :2375
|
||||
EXPOSE 2375
|
||||
|
|
Loading…
Reference in New Issue