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 |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 7 | ADD . /go/src/gerrit.opencord.org/maas/cord-ip-allocator |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 8 | |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 9 | WORKDIR /go/src/gerrit.opencord.org/maas/cord-ip-allocator |
David K. Bainbridge | a9c2e0a | 2016-07-01 18:33:50 -0700 | [diff] [blame] | 10 | RUN /go/bin/godep restore || true |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 11 | |
| 12 | WORKDIR /go |
| 13 | |
David K. Bainbridge | 97ee805 | 2016-06-14 00:52:07 -0700 | [diff] [blame] | 14 | RUN go install gerrit.opencord.org/maas/cord-ip-allocator |
David K. Bainbridge | 8bc905c | 2016-05-31 14:07:10 -0700 | [diff] [blame] | 15 | |
| 16 | ENTRYPOINT ["/go/bin/cord-ip-allocator"] |