Dockerfile: Statically compile the swarm binary.

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2015-01-30 17:41:53 -08:00
parent b5cef2f19f
commit a2203a92a5
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ COPY . /go/src/github.com/docker/swarm
WORKDIR /go/src/github.com/docker/swarm
ENV GOPATH $GOPATH:/go/src/github.com/docker/swarm/Godeps/_workspace
RUN go install -v
RUN CGO_ENABLED=0 go install -v -a -tags netgo -ldflags '-w'
EXPOSE 2375