lego/Dockerfile

15 lines
387 B
Text
Raw Normal View History

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