mirror of https://github.com/docker/docs.git
Merge pull request #339 from aluzzardi/dockerfile
Dockerfile improvements.
This commit is contained in:
commit
85fa8d4291
|
@ -4,9 +4,10 @@ COPY . /go/src/github.com/docker/swarm
|
|||
WORKDIR /go/src/github.com/docker/swarm
|
||||
|
||||
ENV GOPATH $GOPATH:/go/src/github.com/docker/swarm/Godeps/_workspace
|
||||
RUN go install -v
|
||||
RUN CGO_ENABLED=0 go install -v -a -tags netgo -ldflags '-w'
|
||||
|
||||
EXPOSE 2375
|
||||
VOLUME $HOME/.swarm
|
||||
|
||||
ENTRYPOINT ["swarm"]
|
||||
CMD ["--help"]
|
||||
|
|
Loading…
Reference in New Issue