1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-02 02:56:33 +02:00
lego/Dockerfile
Ludovic Fernandez d7d75bea51
chore: update to go1.13 (#962)
* chore: update to go1.13
* fix: invalid version.
* chore: update linter configuration.
2019-09-17 21:00:42 +02:00

16 lines
375 B
Docker

FROM golang:1.13-alpine3.10 as builder
RUN apk --no-cache --no-progress add make git
WORKDIR /go/src/github.com/go-acme/lego
COPY . .
RUN make build
FROM alpine:3.10
RUN apk update \
&& apk add --no-cache ca-certificates tzdata \
&& update-ca-certificates
COPY --from=builder /go/src/github.com/go-acme/lego/dist/lego /usr/bin/lego
ENTRYPOINT [ "/usr/bin/lego" ]