2019-10-17 18:21:04 +07:00
|
|
|
FROM golang:1.13-alpine AS builder
|
2018-01-22 17:35:07 +07:00
|
|
|
LABEL maintainer="joona@kuori.org"
|
|
|
|
|
|
|
|
RUN apk add --update gcc musl-dev git
|
|
|
|
|
|
|
|
RUN go get github.com/joohoi/acme-dns
|
|
|
|
WORKDIR /go/src/github.com/joohoi/acme-dns
|
|
|
|
RUN CGO_ENABLED=1 go build
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
WORKDIR /root/
|
|
|
|
COPY --from=builder /go/src/github.com/joohoi/acme-dns .
|
|
|
|
RUN mkdir -p /etc/acme-dns
|
|
|
|
RUN mkdir -p /var/lib/acme-dns
|
|
|
|
RUN rm -rf ./config.cfg
|
2018-02-01 21:02:06 +07:00
|
|
|
RUN apk --no-cache add ca-certificates && update-ca-certificates
|
2018-01-22 17:35:07 +07:00
|
|
|
|
|
|
|
VOLUME ["/etc/acme-dns", "/var/lib/acme-dns"]
|
|
|
|
ENTRYPOINT ["./acme-dns"]
|
|
|
|
EXPOSE 53 80 443
|
2018-12-13 17:19:10 +07:00
|
|
|
EXPOSE 53/udp
|