Skip to content

Commit

Permalink
Merge pull request docker-archive#330 from psftw/tweaks
Browse files Browse the repository at this point in the history
Tweak Dockerfile for official image.
  • Loading branch information
vieux committed Jan 31, 2015
2 parents 405494d + c88039f commit 682633a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.git
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 682633a

Please sign in to comment.