forked from TrueCloudLab/lego
14 lines
362 B
Docker
14 lines
362 B
Docker
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 ca-certificates go git && \
|
|
rm -rf /var/cache/apk/* && \
|
|
rm -rf /go
|
|
|
|
ENTRYPOINT [ "/usr/bin/lego" ]
|