blob: 22ce5f7f197cfd66da636cd231d246bee559854f [file] [log] [blame]
FROM golang:alpine
RUN apk --update add openssh-client git
WORKDIR /go
RUN go get github.com/tools/godep
ADD . /go/src/gerrit.opencord.org/maas/cord-maas-automation
WORKDIR /go/src/gerrit.opencord.org/maas/cord-maas-automation
RUN /go/bin/godep restore
WORKDIR /go
RUN go install gerrit.opencord.org/maas/cord-maas-automation
RUN mkdir -p /root/.ssh
COPY ssh-config /root/.ssh/config
ENTRYPOINT ["/go/bin/cord-maas-automation"]