Skip to content

Commit

Permalink
Merge pull request docker-archive#339 from aluzzardi/dockerfile
Browse files Browse the repository at this point in the history
Dockerfile improvements.
  • Loading branch information
vieux committed Jan 31, 2015
2 parents b5cef2f + 3da0aaf commit 85fa8d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 85fa8d4

Please sign in to comment.