Created
January 21, 2021 09:53
-
-
Save zhengchun/8b6e021c500d205039c77b34116868d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang AS builder | |
ENV CGO_ENABLED 0 | |
RUN apt-get update && apt-get install -y libcap-dev | |
RUN go get github.com/hlandau/acmetool | |
RUN cd /go/src/github.com/hlandau/acmetool/ && go build | |
FROM alpine | |
RUN apk update && apk --no-cache add ca-certificates && rm -rf /var/cache/apk/* | |
COPY --from=builder /go/src/github.com/hlandau/acmetool/acmetool /usr/bin/acmetool | |
RUN chmod +x /usr/bin/acmetool | |
RUN mkdir /var/lib/acme | |
VOLUME /var/lib/acme | |
EXPOSE 402 | |
CMD [""] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment