github.com/rvaralda/deis@v1.4.1/router/Dockerfile (about) 1 FROM golang:1.4 2 3 ADD firewall /tmp/firewall 4 5 ADD build.sh /go/src/github.com/deis/deis/router/build.sh 6 7 WORKDIR /go/src/github.com/deis/deis/router 8 9 RUN DOCKER_BUILD=true /go/src/github.com/deis/deis/router/build.sh 10 11 RUN tar -C /opt/nginx -czf /nginx.tgz . 12 13 RUN go get github.com/tools/godep 14 15 ADD . /go/src/github.com/deis/deis/router/ 16 17 RUN CGO_ENABLED=0 godep go build -a -installsuffix cgo -ldflags '-s' boot.go 18 19 RUN cp /go/src/github.com/deis/deis/router/boot /go/bin/boot