blob: 4f6211213b3aedd08a9d3009548c66fb5aab6ef5 [file] [log] [blame]
FROM golang:alpine
RUN apk --update add git
WORKDIR /go
RUN go get github.com/tools/godep
ADD . /go/src/gerrit.opencord.org/maas/cord-ip-allocator
WORKDIR /go/src/gerrit.opencord.org/maas/cord-ip-allocator
RUN /go/bin/godep restore || true
WORKDIR /go
RUN go install gerrit.opencord.org/maas/cord-ip-allocator
ENTRYPOINT ["/go/bin/cord-ip-allocator"]