mirror of
https://github.com/go-acme/lego.git
synced 2024-12-23 01:07:23 +02:00
Add Dockerfile
This enables users to build, ship and run lego with Docker.
This commit is contained in:
parent
157111fd1d
commit
94509ee581
17
Dockerfile
Normal file
17
Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
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" ]
|
Loading…
Reference in New Issue
Block a user