bind9-docker/Dockerfile
Markus Pesch cb1bb23e44
All checks were successful
continuous-integration/drone/push Build is passing
fix: remove arch linux pkgs from cache
2023-06-08 18:32:21 +02:00

18 lines
573 B
Docker

FROM docker.io/library/archlinux:latest
RUN pacman \
--sync \
--sysupgrade \
--refresh --noconfirm \
bind bind-tools && \
rm --recursive --force /var/cache/pacman/pkg
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" ]