2016-11-03 21:13:18 +00:00
|
|
|
FROM golang:1.7-alpine
|
|
|
|
|
|
|
|
RUN apk add --update \
|
|
|
|
git \
|
|
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
|
|
|
|
RUN go get github.com/bifurcation/mint
|
|
|
|
|
|
|
|
# Draft 18
|
2016-11-30 01:00:17 +00:00
|
|
|
ARG REVISION=52f9f98
|
2016-11-03 21:13:18 +00:00
|
|
|
|
2016-11-30 01:00:17 +00:00
|
|
|
RUN cd /go/src/github.com/bifurcation/mint && git fetch https://github.com/FiloSottile/mint
|
2016-11-03 21:13:18 +00:00
|
|
|
RUN cd /go/src/github.com/bifurcation/mint && git checkout $REVISION
|
|
|
|
|
|
|
|
ADD mint-client.go /mint-client.go
|
|
|
|
RUN GOBIN=/ go install /mint-client.go
|
|
|
|
|
|
|
|
ENV MINT_LOG=*
|
|
|
|
|
|
|
|
ADD run.sh /run.sh
|
|
|
|
ENTRYPOINT ["/run.sh"]
|