use lego from baseimage

This commit is contained in:
Sebastian Hugentobler 2017-09-05 11:52:24 +02:00
parent 51cc43c11d
commit c0e510acba
7 changed files with 9 additions and 79 deletions

View file

@ -1,13 +1,8 @@
FROM golang:alpine as builder
RUN apk --no-cache add git
RUN go get -v -u github.com/xenolf/lego
FROM registry.gitlab.com/thallian/docker-confd-env:master
COPY --from=builder /go/bin/lego /bin/lego
FROM registry.gitlab.com/thallian/docker-confd-env:lego
ENV PGDATA /var/lib/postgresql/data
ENV CERT_HOME /var/lib/postgresql
ENV CERT_USER postgres
RUN apk add --no-cache postgresql postgresql-contrib ca-certificates