summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/xenolf/lego/Dockerfile
blob: c039640768fe27205e7cce8ca4eb6b75a432fe83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM alpine:3.4

ENV GOPATH /go

RUN apk update && apk add ca-certificates go git && \
    rm -rf /var/cache/apk/* && \
    go get -u github.com/xenolf/lego && \
    cd /go/src/github.com/xenolf/lego && \
    go build -o /usr/bin/lego . && \
    apk del go git && \
    rm -rf /var/cache/apk/* && \
    rm -rf /go

ENTRYPOINT [ "/usr/bin/lego" ]