1
0
mirror of https://github.com/go-acme/lego.git synced 2024-12-05 12:00:24 +02:00
lego/Dockerfile
Christian Koep 94509ee581 Add Dockerfile
This enables users to build, ship and run lego with Docker.
2016-04-07 22:15:55 +02:00

18 lines
362 B
Docker

FROM alpine:3.3
ENV GOPATH /go
RUN apk update && apk add ca-certificates go git && \
rm -rf /var/cache/apk/*
COPY . /go/src/github.com/xenolf/lego
RUN cd /go/src/github.com/xenolf/lego && \
go get ./... && \
go build -o /usr/bin/lego . && \
apk del ca-certificates go git && \
rm -rf /var/cache/apk/* && \
rm -rf /go
ENTRYPOINT [ "/usr/bin/lego" ]