Skip to content

Instantly share code, notes, and snippets.

@zhengchun
Created January 21, 2021 09:53
Show Gist options
  • Save zhengchun/8b6e021c500d205039c77b34116868d2 to your computer and use it in GitHub Desktop.
Save zhengchun/8b6e021c500d205039c77b34116868d2 to your computer and use it in GitHub Desktop.
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