mirror of https://github.com/docker/docs.git
Tweak Dockerfile for official image.
Replaced ADD with COPY per best practices article. Removed unnecessary Godeps install, and added a .dockerignore to shave off ~23M. Signed-off-by: Peter Salvatore <peter@psftw.com>
This commit is contained in:
parent
405494df65
commit
c88039f619
|
|
@ -0,0 +1 @@
|
||||||
|
.git
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
FROM golang:1.3
|
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
|
WORKDIR /go/src/github.com/docker/swarm
|
||||||
|
|
||||||
RUN go get github.com/tools/godep
|
ENV GOPATH $GOPATH:/go/src/github.com/docker/swarm/Godeps/_workspace
|
||||||
RUN godep go install
|
RUN go install -v
|
||||||
|
|
||||||
EXPOSE 2375
|
EXPOSE 2375
|
||||||
|
|
||||||
ENTRYPOINT ["swarm"]
|
ENTRYPOINT ["swarm"]
|
||||||
|
CMD ["--help"]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue