1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-23 01:07:23 +02:00
lego/Dockerfile

25 lines
412 B
Docker
Raw Normal View History

2020-03-01 22:01:41 +02:00
FROM golang:1-alpine as builder
RUN apk --no-cache --no-progress add make git
2020-03-01 22:01:41 +02:00
WORKDIR /go/lego
ENV GO111MODULE on
# Download go modules
COPY go.mod .
COPY go.sum .
RUN go mod download
COPY . .
2018-11-05 18:54:38 +02:00
RUN make build
FROM alpine:3
2019-04-18 19:44:44 +02:00
RUN apk update \
&& apk add --no-cache ca-certificates tzdata \
&& update-ca-certificates
2020-03-01 22:01:41 +02:00
COPY --from=builder /go/lego/dist/lego /usr/bin/lego
ENTRYPOINT [ "/usr/bin/lego" ]