2018-11-05 16:14:30 +02:00
|
|
|
FROM golang:alpine3.8 as builder
|
2016-04-07 21:57:42 +02:00
|
|
|
|
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/*
|
2016-04-07 21:57:42 +02:00
|
|
|
|
2018-05-31 00:28:41 +02:00
|
|
|
WORKDIR /go/src/github.com/xenolf/lego
|
|
|
|
COPY . .
|
2018-11-05 18:54:38 +02:00
|
|
|
RUN make build
|
2018-05-30 14:01:23 +02:00
|
|
|
|
2018-11-05 16:14:30 +02:00
|
|
|
FROM alpine:3.8
|
2018-05-30 14:01:23 +02:00
|
|
|
RUN apk update && apk add --no-cache --virtual ca-certificates
|
2018-12-06 23:50:17 +02:00
|
|
|
COPY --from=builder /go/src/github.com/xenolf/lego/dist/lego /usr/bin/lego
|
2016-04-07 21:57:42 +02:00
|
|
|
ENTRYPOINT [ "/usr/bin/lego" ]
|