Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Dockerfile improvements. #339

Merged
merged 2 commits into from
Jan 31, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"]