From bc4110a8bbefd7530d3c1a285261998e5c6655ab Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Wed, 15 Jun 2022 14:23:05 +0200 Subject: [PATCH] initial version of PowerDNS on Debian Bullseye --- Dockerfile | 20 ++++++++++++++++++++ start.sh | 3 +++ 2 files changed, 23 insertions(+) create mode 100644 Dockerfile create mode 100755 start.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e2bb018 --- /dev/null +++ b/Dockerfile @@ -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 diff --git a/start.sh b/start.sh new file mode 100755 index 0000000..8e6f909 --- /dev/null +++ b/start.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +exec /usr/sbin/pdns_server --guardian=no --daemon=no --disable-syslog --log-timestamp=no --write-pid=no