From b84736e9b6401df0c6eeab9950bef09458a6aefd Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 29 Sep 2017 12:46:30 -0700 Subject: Updating server dependancies. (#7538) --- vendor/github.com/xenolf/lego/Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'vendor/github.com/xenolf/lego/Dockerfile') diff --git a/vendor/github.com/xenolf/lego/Dockerfile b/vendor/github.com/xenolf/lego/Dockerfile index c03964076..511e403ce 100644 --- a/vendor/github.com/xenolf/lego/Dockerfile +++ b/vendor/github.com/xenolf/lego/Dockerfile @@ -1,14 +1,15 @@ -FROM alpine:3.4 +FROM alpine:3.6 ENV GOPATH /go +ENV LEGO_VERSION tags/v0.4.1 -RUN apk update && apk add ca-certificates go git && \ - rm -rf /var/cache/apk/* && \ +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 /go/src/github.com/xenolf/lego && \ + cd ${GOPATH}/src/github.com/xenolf/lego && \ + git checkout ${LEGO_VERSION} && \ go build -o /usr/bin/lego . && \ - apk del go git && \ - rm -rf /var/cache/apk/* && \ - rm -rf /go + apk del build-dependencies && \ + rm -rf ${GOPATH} ENTRYPOINT [ "/usr/bin/lego" ] -- cgit v1.2.3-1-g7c22