th5/_dev/mint/Dockerfile

22 lines
455 B
Docker
Raw Normal View History

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-30 01:00:17 +00:00
RUN cd /go/src/github.com/bifurcation/mint && git fetch https://github.com/FiloSottile/mint
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"]