From 4dccb8db8213f35d04ee898cc4f79b9606ab5d12 Mon Sep 17 00:00:00 2001 From: transcaffeine Date: Mon, 5 May 2025 15:52:21 +0200 Subject: [PATCH] feat: add Dockerfile to parametrically build from alpine --- Dockerfile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e3e7d4e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,28 @@ +ARG ALPINE_VERSION=edge +FROM docker.io/alpine:${ALPINE_VERSION} + +ARG POWERDNS_VERSION=4.9.4-r0 +# Enable community repo +RUN apk add --no-cache alpine-conf +RUN setup-apkrepos -c +RUN apk del alpine-conf +RUN apk --no-cache add \ + "pdns=${POWERDNS_VERSION}" \ + pdns-backend-bind \ + pdns-backend-ldap \ + pdns-backend-lmdb \ + pdns-backend-mariadb \ + pdns-backend-mysql \ + pdns-backend-pgsql \ + pdns-backend-mariadb \ + pdns-backend-sqlite3 \ + pdns-backend-odbc \ + pdns-backend-pipe \ + pdns-backend-remote \ + pdns-backend-lua2 \ + libcap + +RUN setcap 'cap_net_bind_service=+eip' /usr/sbin/pdns_server +SHELL ["/bin/bash", "-c"] + +CMD ["/usr/sbin/pdns_server"]