github.com/sbuss/deis@v1.6.1/swarm/Dockerfile (about) 1 FROM golang:1.4 2 3 WORKDIR /go/src/github.com/docker 4 RUN git clone https://github.com/deis/swarm 5 WORKDIR /go/src/github.com/docker/swarm 6 RUN git fetch origin nodefailover 7 RUN git checkout nodefailover 8 9 ENV GOPATH /go/src/github.com/docker/swarm/Godeps/_workspace:$GOPATH 10 RUN CGO_ENABLED=0 go build -a -tags netgo -installsuffix cgo \ 11 -ldflags "-s -w -X github.com/docker/swarm/version.GITCOMMIT `git rev-parse --short HEAD`" \ 12 -o deis-swarm