1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-05 20:02:38 +02:00
lego/Dockerfile

15 lines
385 B
Docker
Raw Normal View History

2018-11-05 16:14:30 +02:00
FROM golang:alpine3.8 as builder
2018-11-05 16:14:30 +02:00
RUN apk --update upgrade \
&& apk --no-cache --no-progress add make git \
&& rm -rf /var/cache/apk/*
WORKDIR /go/src/github.com/xenolf/lego
COPY . .
2018-11-05 18:54:38 +02:00
RUN make build
2018-11-05 16:14:30 +02:00
FROM alpine:3.8
RUN apk update && apk add --no-cache --virtual ca-certificates
COPY --from=builder /go/src/github.com/xenolf/lego/dist/lego /usr/bin/lego
ENTRYPOINT [ "/usr/bin/lego" ]