mirror of
https://github.com/go-acme/lego.git
synced 2024-12-05 20:02:38 +02:00
Merge pull request #196 from JoyceBabu/patch-1
Optimized Dockerfile for smaller image size
This commit is contained in:
commit
562781dd19
@ -3,12 +3,9 @@ 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 ./... && \
|
||||
rm -rf /var/cache/apk/* && \
|
||||
go get -u github.com/xenolf/lego && \
|
||||
cd /go/src/github.com/xenolf/lego && \
|
||||
go build -o /usr/bin/lego . && \
|
||||
apk del ca-certificates go git && \
|
||||
rm -rf /var/cache/apk/* && \
|
||||
|
Loading…
Reference in New Issue
Block a user