mirror of
https://github.com/go-acme/lego.git
synced 2024-11-25 09:00:57 +02:00
15 lines
387 B
Docker
15 lines
387 B
Docker
FROM golang:alpine3.9 as builder
|
|
|
|
RUN apk --update upgrade \
|
|
&& apk --no-cache --no-progress add make git \
|
|
&& rm -rf /var/cache/apk/*
|
|
|
|
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
|
|
COPY --from=builder /go/src/github.com/go-acme/lego/dist/lego /usr/bin/lego
|
|
ENTRYPOINT [ "/usr/bin/lego" ]
|