mirror of
https://github.com/sujiba/pihole-unbound-hyperlocal.git
synced 2025-07-09 21:35:13 +02:00
26 lines
729 B
Docker
Executable file
26 lines
729 B
Docker
Executable file
# Get the latest Pi-hole version
|
|
FROM pihole/pihole:2025.06.0
|
|
|
|
# Install necessary programs without repository caching
|
|
RUN apk upgrade --no-cache && \
|
|
apk add --no-cache \
|
|
unbound \
|
|
wget
|
|
|
|
# Additional configs
|
|
# unbound
|
|
COPY unbound-pihole.conf /etc/unbound/unbound.conf.d/pihole.conf
|
|
|
|
# Set edns packet limit for dnsmasq
|
|
COPY 99-edns.conf /etc/dnsmasq.d/99-edns.conf
|
|
|
|
# Download DNS-Root-Zone and move file
|
|
RUN wget -S https://www.internic.net/domain/named.root -O /etc/unbound/root.hints
|
|
|
|
# Create unbound log dir
|
|
RUN install -o unbound -g unbound -Dm755 -d /var/log/unbound
|
|
|
|
# Add unbound start up script
|
|
COPY --chmod=0755 unbound-entrypoint.sh /usr/bin/unbound-entrypoint.sh
|
|
|
|
ENTRYPOINT ["unbound-entrypoint.sh"]
|