David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 1 | FROM golang:alpine |
2 | |||||
3 | RUN apk --update add git | ||||
4 | |||||
5 | WORKDIR /go | ||||
6 | RUN go get github.com/tools/godep | ||||
7 | ADD . /go/src/github.com/ciena/cord-ip-allocator | ||||
8 | |||||
9 | WORKDIR /go/src/github.com/ciena/cord-ip-allocator | ||||
10 | RUN /go/bin/godep restore | ||||
11 | |||||
12 | WORKDIR /go | ||||
13 | |||||
14 | RUN go install github.com/ciena/cord-ip-allocator | ||||
15 | |||||
16 | ENTRYPOINT ["/go/bin/cord-ip-allocator"] |