lego/Dockerfile
Fernandez Ludovic e7a90b9471 chore: migrate to go module (v3.0.0)
- chore: update dependencies: use version with go modules.
- chore: remove dep.
- chore: update backoff imports.
- chore: init go module.
- chore: update CI.
- chore: mod v3
- chore: update docker image.
2019-08-07 14:07:47 +02:00

15 lines
375 B
Docker

FROM golang:1.12-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" ]