mirror of
https://github.com/go-acme/lego.git
synced 2024-12-05 20:02:38 +02:00
6004e599ed
* feat: add dep configuration files. * chore: add vendor folder. * refactor: update Dockerfile. * review: remove git from Dockerfile. * review: remove RUN apk. * review: dep status. * feat: added .dockerignore
13 lines
344 B
Docker
13 lines
344 B
Docker
FROM golang:alpine3.7 as builder
|
|
|
|
ARG LEGO_VERSION=dev
|
|
|
|
WORKDIR /go/src/github.com/xenolf/lego
|
|
COPY . .
|
|
RUN go build -ldflags="-s -X main.version=${LEGO_VERSION}"
|
|
|
|
FROM alpine:3.7
|
|
RUN apk update && apk add --no-cache --virtual ca-certificates
|
|
COPY --from=builder /go/src/github.com/xenolf/lego/lego /usr/bin/lego
|
|
ENTRYPOINT [ "/usr/bin/lego" ]
|