1
0
mirror of https://github.com/docker/docs.git synced 2026-10-31 10:34:26 +03:00

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

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