blob: c864076d1214a453307cee4fd5aa505bb0ab84e6 [file] [log] [blame]
David K. Bainbridgea9c2e0a2016-07-01 18:33:50 -07001FROM golang:1.6-alpine
David K. Bainbridgeb5415042016-05-13 17:06:10 -07002
David K. Bainbridge6ea57c12016-06-06 23:29:12 -07003RUN apk --update add openssh-client git
David K. Bainbridgeb5415042016-05-13 17:06:10 -07004
5WORKDIR /go
David K. Bainbridgeefa951d2016-05-26 10:54:25 -07006RUN go get github.com/tools/godep
David K. Bainbridge97ee8052016-06-14 00:52:07 -07007ADD . /go/src/gerrit.opencord.org/maas/cord-maas-automation
David K. Bainbridgeefa951d2016-05-26 10:54:25 -07008
David K. Bainbridge97ee8052016-06-14 00:52:07 -07009WORKDIR /go/src/gerrit.opencord.org/maas/cord-maas-automation
David K. Bainbridgea9c2e0a2016-07-01 18:33:50 -070010RUN /go/bin/godep restore || true
David K. Bainbridgeefa951d2016-05-26 10:54:25 -070011
12WORKDIR /go
David K. Bainbridge97ee8052016-06-14 00:52:07 -070013RUN go install gerrit.opencord.org/maas/cord-maas-automation
David K. Bainbridgeb5415042016-05-13 17:06:10 -070014
David K. Bainbridgeb5415042016-05-13 17:06:10 -070015ENTRYPOINT ["/go/bin/cord-maas-automation"]