2022-01-26 05:26:45 +07:00
|
|
|
FROM golang:alpine AS builder
|
2018-01-22 17:35:07 +07:00
|
|
|
LABEL maintainer="joona@kuori.org"
|
|
|
|
|
|
|
|
RUN apk add --update gcc musl-dev git
|
|
|
|
|
2020-01-10 17:32:11 +07:00
|
|
|
ENV GOPATH /tmp/buildcache
|
|
|
|
RUN git clone https://github.com/joohoi/acme-dns /tmp/acme-dns
|
|
|
|
WORKDIR /tmp/acme-dns
|
2018-01-22 17:35:07 +07:00
|
|
|
RUN CGO_ENABLED=1 go build
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
WORKDIR /root/
|
2020-01-10 17:32:11 +07:00
|
|
|
COPY --from=builder /tmp/acme-dns .
|
2018-01-22 17:35:07 +07:00
|
|
|
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
|