mirror of
https://github.com/docker/docs.git
synced 2026-04-12 06:19:22 +07:00
Merge pull request #330 from psftw/tweaks
Tweak Dockerfile for official image.
This commit is contained in:
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@@ -0,0 +1 @@
|
||||
.git
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user