forked from TrueCloudLab/lego
62fea05e21
* generate a detailed CLI help * generate a documentation site * new readme
14 lines
385 B
Docker
14 lines
385 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/xenolf/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/xenolf/lego/dist/lego /usr/bin/lego
|
|
ENTRYPOINT [ "/usr/bin/lego" ]
|