| # debian.sh --arch 'amd64' out/ 'trixie' '@1768176000' |
| LABEL maintainer=HuTaeh |
| LABEL description=PowerDNS Authoritative Server |
| ENV DEBIAN_FRONTEND=noninteractive |
| RUN /bin/sh -c apt-get update && apt-get install -y default-mysql-client postgresql-client sqlite3 procps curl && rm -rf /var/lib/apt/lists/* # buildkit |
| COPY sources/powerdns-archive-keyring.gpg /usr/share/keyrings/powerdns-archive-keyring.gpg # buildkit |
| COPY sources/powerdns.sources /etc/apt/sources.list.d/powerdns.sources # buildkit |
| COPY sources/powerdns.pref /etc/apt/preferences.d/powerdns.pref # buildkit |
| RUN /bin/sh -c apt-get update && apt-get install -y pdns-server pdns-backend-sqlite3 pdns-backend-mysql pdns-backend-pgsql && rm -rf /var/lib/apt/lists/* && rm -rf /etc/powerdns/pdns.conf /etc/powerdns/named.conf /etc/powerdns/pdns.d/* # buildkit |
| RUN /bin/sh -c mkdir -p /data && chown -R pdns:pdns /data # buildkit |
| COPY entrypoint.sh /entrypoint.sh # buildkit |
| COPY healthcheck.sh /healthcheck.sh # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh /healthcheck.sh # buildkit |
| HEALTHCHECK &{["CMD" "/healthcheck.sh"] "30s" "10s" "10s" "0s" '\x03'} |
| EXPOSE [53/tcp 53/udp 8081/tcp] |
| ENTRYPOINT ["/entrypoint.sh"] |