Merge pull request #330 from psftw/tweaks

Tweak Dockerfile for official image.
This commit is contained in:
Victor Vieux 2015-01-30 17:19:07 -08:00
commit 682633a7ef
2 changed files with 6 additions and 3 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.git

View File

@ -1,10 +1,12 @@
FROM golang:1.3
ADD . /go/src/github.com/docker/swarm
COPY . /go/src/github.com/docker/swarm
WORKDIR /go/src/github.com/docker/swarm
RUN go get github.com/tools/godep
RUN godep go install
ENV GOPATH $GOPATH:/go/src/github.com/docker/swarm/Godeps/_workspace
RUN go install -v
EXPOSE 2375
ENTRYPOINT ["swarm"]
CMD ["--help"]