github.com/epicpaas/deis@v1.0.2-0.20141114233758-6bbccb748f60/router/parent/Dockerfile (about)

     1  FROM golang:1.3
     2  
     3  ADD build.sh /go/src/github.com/deis/deis/router/build.sh
     4  
     5  WORKDIR /go/src/github.com/deis/deis/router
     6  
     7  RUN DOCKER_BUILD=true /go/src/github.com/deis/deis/router/build.sh
     8  
     9  RUN tar -C /opt/nginx -czf /nginx.tgz .
    10  
    11  ADD boot.go /go/src/github.com/deis/deis/router/boot.go
    12  
    13  RUN go get
    14  
    15  RUN CGO_ENABLED=0 go build -a -ldflags '-s' boot.go
    16  
    17  RUN cp /go/src/github.com/deis/deis/router/boot /go/bin/boot