1
0
Fork 0
mirror of https://github.com/sujiba/pihole-unbound-hyperlocal.git synced 2025-07-13 23:05:44 +02:00
pihole-unbound-hyperlocal/docker-build/Dockerfile

33 lines
994 B
Text
Raw Normal View History

2022-01-06 09:35:19 +01:00
# Get the latest Pi-hole version
2022-04-03 15:06:32 +02:00
FROM pihole/pihole:2022.04.1
2021-09-27 18:06:12 +02:00
# Install necessary programs
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
unbound \
wget
# Additional configs
# unbound
2022-04-03 15:06:32 +02:00
# COPY unbound-v1.9_pihole.conf /etc/unbound/unbound.conf.d/pihole.conf
COPY unbound-v1.13.1_pihole.conf /etc/unbound/unbound.conf.d/pihole.conf
2021-09-27 18:06:12 +02:00
2022-04-03 15:06:32 +02:00
# Download the DNS-Root-Zone.
# Create the chroot directory.
# Copy / move files and change owner.
2021-09-27 18:06:12 +02:00
RUN wget -O root.hints https://www.internic.net/domain/named.root && \
2022-04-03 15:06:32 +02:00
mkdir /usr/local/etc/unbound && \
cp /var/lib/unbound/root.key /usr/local/etc/unbound/root.key && \
mv root.hints /usr/local/etc/unbound/ && \
chown -R unbound:unbound /usr/local/etc/unbound/root.*
2021-09-27 18:06:12 +02:00
# Unbound startup script
COPY start_unbound_and_s6_init.sh start_unbound_and_s6_init.sh
RUN chmod +x start_unbound_and_s6_init.sh
ENTRYPOINT ./start_unbound_and_s6_init.sh
# Remove unnecessary programs
2022-03-09 12:22:14 +01:00
RUN apt-get remove -y \
2021-09-27 18:06:12 +02:00
wget