1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-13 13:48:45 +02:00
lego/Dockerfile
2016-10-18 22:55:27 +02:00

15 lines
346 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 go git && \
rm -rf /var/cache/apk/* && \
rm -rf /go
ENTRYPOINT [ "/usr/bin/lego" ]