1
0
docker-powerdns/debian/12/Dockerfile
Pim van den Berg 15e959391d
Some checks failed
continuous-integration/drone/push Build is failing
fix(Dockerfile): fail build when apt-get fails
2022-09-17 15:24:14 +02:00

23 lines
456 B
Docker

FROM debian:bookworm-slim
RUN set -eux && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
pdns-server \
pdns-backend-bind \
sqlite3 \
bind9-dnsutils \
inotify-tools \
&& \
rm -rf /var/lib/apt/lists/*
ADD start.sh /
EXPOSE 53/tcp 53/udp
VOLUME ["/var/lib/powerdns"]
CMD /start.sh
HEALTHCHECK CMD dig +timeout=1 @127.0.0.1 || exit 1