2020-06-05 04:46:20 +00:00
|
|
|
FROM alpine AS builder
|
2020-06-05 03:50:14 +00:00
|
|
|
ENV VERSION=1.6.4
|
2020-06-05 04:46:20 +00:00
|
|
|
WORKDIR /tmp
|
|
|
|
RUN apk add curl \
|
|
|
|
&& mkdir nextdns \
|
2020-06-05 05:21:59 +00:00
|
|
|
&& curl -fsSL https://github.com/nextdns/nextdns/releases/download/v${VERSION}/nextdns_${VERSION}_linux_arm64.tar.gz -o nextdns.tar.gz \
|
2020-06-05 04:46:20 +00:00
|
|
|
&& tar zxf nextdns.tar.gz -C ./nextdns
|
2020-06-05 03:50:14 +00:00
|
|
|
|
2020-06-05 04:46:20 +00:00
|
|
|
FROM debian:buster-slim
|
|
|
|
LABEL maintainer="John Dorman <dorman@ataxia.cloud>"
|
2020-06-05 05:12:20 +00:00
|
|
|
RUN apt update && apt install -y ca-certificates
|
2020-06-05 04:46:20 +00:00
|
|
|
COPY --from=builder /tmp/nextdns /opt/nextdns
|
2020-06-05 03:50:14 +00:00
|
|
|
EXPOSE 53/tcp 53/udp
|
|
|
|
ENTRYPOINT ["/opt/nextdns/nextdns","run", "-config-file", "/etc/nextdns/nextdns.conf"]
|