2016-09-09 12:51:32 +00:00
|
|
|
FROM alpine:3.4
|
2016-04-07 19:57:42 +00:00
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
|
|
|
|
RUN apk update && apk add ca-certificates go git && \
|
2016-04-19 08:13:22 +00:00
|
|
|
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
|
2016-04-07 19:57:42 +00:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/lego" ]
|