1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-25 11:02:56 +02:00

Add tzdata to the Docker image. (#863)

This commit is contained in:
Ludovic Fernandez 2019-04-18 19:44:44 +02:00 committed by GitHub
parent 8edce3b2cf
commit 4b0d8830de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,14 +1,16 @@
FROM golang:alpine3.9 as builder
RUN apk --update upgrade \
&& apk --no-cache --no-progress add make git \
&& rm -rf /var/cache/apk/*
&& apk --no-cache --no-progress add make git
WORKDIR /go/src/github.com/go-acme/lego
COPY . .
RUN make build
FROM alpine:3.9
RUN apk update && apk add --no-cache --virtual ca-certificates
RUN apk update \
&& apk add --no-cache ca-certificates tzdata \
&& update-ca-certificates
COPY --from=builder /go/src/github.com/go-acme/lego/dist/lego /usr/bin/lego
ENTRYPOINT [ "/usr/bin/lego" ]