blob: 870381cea587d6aeb79b13027f29110912095f1a [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. Bainbridge8bc905c2016-05-31 14:07:10 -070010RUN /go/bin/godep restore
11
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"]