forked from TrueCloudLab/lego
Add tzdata to the Docker image. (#863)
This commit is contained in:
parent
8edce3b2cf
commit
4b0d8830de
1 changed files with 5 additions and 3 deletions
|
@ -1,14 +1,16 @@
|
||||||
FROM golang:alpine3.9 as builder
|
FROM golang:alpine3.9 as builder
|
||||||
|
|
||||||
RUN apk --update upgrade \
|
RUN apk --update upgrade \
|
||||||
&& apk --no-cache --no-progress add make git \
|
&& apk --no-cache --no-progress add make git
|
||||||
&& rm -rf /var/cache/apk/*
|
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/go-acme/lego
|
WORKDIR /go/src/github.com/go-acme/lego
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN make build
|
RUN make build
|
||||||
|
|
||||||
FROM alpine:3.9
|
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
|
COPY --from=builder /go/src/github.com/go-acme/lego/dist/lego /usr/bin/lego
|
||||||
ENTRYPOINT [ "/usr/bin/lego" ]
|
ENTRYPOINT [ "/usr/bin/lego" ]
|
||||||
|
|
Loading…
Reference in a new issue