ADD file:90b9dd8f12120e8b2cd3ece45fcbe8af67e40565e2032a40f64bd921c43e2ce7 in / |
CMD ["bash"] |
LABEL maintainer=hi@bluemedia.dev |
RUN /bin/sh -c apt update && apt upgrade -y && apt install --no-install-recommends -y apt-transport-https ca-certificates curl gnupg && echo "deb [arch=amd64] http://repo.powerdns.com/debian bookworm-auth-49 main" > /etc/apt/sources.list.d/pdns.list && tee /etc/apt/preferences.d/pdns << END Package: pdns-* Pin: origin repo.powerdns.com Pin-Priority: 600 END && curl https://repo.powerdns.com/FD380FBB-pub.asc | apt-key add - && apt update && apt install --no-install-recommends -y pdns-server pdns-backend-mysql python3-venv mariadb-client && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && python3 -m venv .venv && .venv/bin/pip install --no-cache-dir envtpl # buildkit |
ENV VERSION=4.8 PDNS_guardian=yes PDNS_setuid=pdns PDNS_setgid=pdns PDNS_launch=gmysql |
EXPOSE map[53/tcp:{} 53/udp:{}] |
COPY pdns.conf.tpl / # buildkit |
COPY docker-entrypoint.sh / # buildkit |
RUN /bin/sh -c chmod +x /docker-entrypoint.sh # buildkit |
ENTRYPOINT ["/docker-entrypoint.sh"] |
CMD ["/usr/sbin/pdns_server"] |