2022-06-15 14:23:05 +02:00
|
|
|
FROM debian:bullseye-slim
|
|
|
|
|
2022-09-17 15:24:14 +02:00
|
|
|
RUN set -eux && \
|
|
|
|
apt-get update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
2022-06-15 14:23:05 +02:00
|
|
|
pdns-server \
|
|
|
|
pdns-backend-bind \
|
|
|
|
sqlite3 \
|
|
|
|
bind9-dnsutils \
|
2022-06-19 19:19:48 +02:00
|
|
|
inotify-tools \
|
2022-09-17 15:24:14 +02:00
|
|
|
&& \
|
2022-06-15 14:23:05 +02:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
ADD start.sh /
|
|
|
|
|
|
|
|
EXPOSE 53/tcp 53/udp
|
|
|
|
VOLUME ["/var/lib/powerdns"]
|
|
|
|
|
|
|
|
CMD /start.sh
|
|
|
|
|
2022-06-21 14:18:10 +02:00
|
|
|
HEALTHCHECK CMD dig +timeout=1 @127.0.0.1 || exit 1
|