Files
docker-docs/Dockerfile
Victor Vieux 16ac82a509 switch to golang 1.5
Signed-off-by: Victor Vieux <vieux@docker.com>
2015-09-01 04:18:39 -07:00

16 lines
414 B
Docker

FROM golang:1.5
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 -installsuffix netgo -ldflags "-w -X github.com/docker/swarm/version.GITCOMMIT `git rev-parse --short HEAD`"
ENV SWARM_HOST :2375
EXPOSE 2375
VOLUME $HOME/.swarm
ENTRYPOINT ["swarm"]
CMD ["--help"]