Files
docker-docs/Dockerfile
Victor Vieux e38b06fbe8 add VERSION file
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-02-03 01:53:01 +00:00

14 lines
371 B
Docker

FROM golang:1.3
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`"
EXPOSE 2375
VOLUME $HOME/.swarm
ENTRYPOINT ["swarm"]
CMD ["--help"]