bind9-docker/Dockerfile

18 lines
573 B
Docker
Raw Normal View History

2021-08-31 15:08:19 +00:00
FROM docker.io/library/archlinux:latest
RUN pacman \
--sync \
--sysupgrade \
--refresh --noconfirm \
2023-06-08 16:32:21 +00:00
bind bind-tools && \
rm --recursive --force /var/cache/pacman/pkg
2021-08-31 15:08:19 +00:00
RUN mkdir --parents /etc/bind/zones /var/log/bind && \
mv /etc/named.conf /etc/bind/named.conf && \
cp --recursive /var/named/* /etc/bind/zones && \
sed --in-place --expression 's#directory "/var/named";#directory "/etc/bind/zones";#g' /etc/bind/named.conf
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
EXPOSE 53
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]