Files
Pihole-Unbound/Dockerfile
awptechnologies 84cd6c18cf
All checks were successful
Build and Push Pihole Latest Image / build (push) Successful in 1m29s
Build and Push Pihole Nightly Image / build (push) Successful in 53s
Build and Push Pihole Dev Image / build (push) Successful in 42s
Build
2025-04-28 13:30:47 -04:00

20 lines
630 B
Docker

#ARG PIHOLE_VERSION
FROM pihole/pihole:latest
RUN apk update
RUN apk add --no-cache unbound curl ca-certificates \
&& curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache
RUN apk add --no-cache iputils-ping
COPY config/unbound/unbound.conf /etc/unbound/unbound.conf
COPY config/unbound/unbound.conf.d /etc/unbound/unbound.conf.d
COPY config/unbound/unbound.log /etc/unbound/unbound.log
COPY config/entrypoint.sh /usr/bin/entrypoint.sh
COPY config/unbound/unbound.sh /usr/bin/unbound.sh
RUN chmod +x /usr/bin/entrypoint.sh
RUN chmod +x /usr/bin/unbound.sh
WORKDIR /usr/bin
ENTRYPOINT ["entrypoint.sh"]