blob: 511e403ce8c69d3607348c1d3a8b4cc2d7feb6e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
FROM alpine:3.6
ENV GOPATH /go
ENV LEGO_VERSION tags/v0.4.1
RUN apk update && apk add --no-cache --virtual run-dependencies ca-certificates && \
apk add --no-cache --virtual build-dependencies go git musl-dev && \
go get -u github.com/xenolf/lego && \
cd ${GOPATH}/src/github.com/xenolf/lego && \
git checkout ${LEGO_VERSION} && \
go build -o /usr/bin/lego . && \
apk del build-dependencies && \
rm -rf ${GOPATH}
ENTRYPOINT [ "/usr/bin/lego" ]
|