1
0

initial version of PowerDNS on Debian Bullseye

This commit is contained in:
Pim van den Berg 2022-06-15 14:23:05 +02:00
commit bc4110a8bb
2 changed files with 23 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM debian:bullseye-slim
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
pdns-server \
pdns-backend-bind \
sqlite3 \
bind9-dnsutils \
; \
rm -rf /var/lib/apt/lists/*
ADD start.sh /
EXPOSE 53/tcp 53/udp
VOLUME ["/var/lib/powerdns"]
CMD /start.sh
HEALTHCHECK CMD dig @127.0.0.1 || exit 1

3
start.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
exec /usr/sbin/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no