14 lines
507 B
Docker
14 lines
507 B
Docker
FROM docker.io/debian:12-slim
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
bind9 \
|
|
bind9-dnsutils \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY named.conf.options /etc/bind/
|
|
COPY entrypoint.sh /usr/local/bin/
|
|
VOLUME /var/cache/bind/
|
|
RUN chown -R root:bind /etc/bind/ /var/cache/bind/
|
|
EXPOSE 53/tcp 53/udp 8443/tcp
|
|
ENTRYPOINT ["entrypoint.sh"]
|
|
CMD ["named", "-g", "-ubind"]
|