blob: 4f6211213b3aedd08a9d3009548c66fb5aab6ef5 [file] [log] [blame]
David K. Bainbridge8bc905c2016-05-31 14:07:10 -07001FROM golang:alpine
2
3RUN apk --update add git
4
5WORKDIR /go
6RUN go get github.com/tools/godep
David K. Bainbridge97ee8052016-06-14 00:52:07 -07007ADD . /go/src/gerrit.opencord.org/maas/cord-ip-allocator
David K. Bainbridge8bc905c2016-05-31 14:07:10 -07008
David K. Bainbridge97ee8052016-06-14 00:52:07 -07009WORKDIR /go/src/gerrit.opencord.org/maas/cord-ip-allocator
David K. Bainbridgea9c2e0a2016-07-01 18:33:50 -070010RUN /go/bin/godep restore || true
David K. Bainbridge8bc905c2016-05-31 14:07:10 -070011
12WORKDIR /go
13
David K. Bainbridge97ee8052016-06-14 00:52:07 -070014RUN go install gerrit.opencord.org/maas/cord-ip-allocator
David K. Bainbridge8bc905c2016-05-31 14:07:10 -070015
16ENTRYPOINT ["/go/bin/cord-ip-allocator"]