mirror of
https://github.com/sujiba/pihole-unbound-hyperlocal.git
synced 2025-07-11 14:05:43 +02:00
first commit
This commit is contained in:
commit
e5b26c41c5
13 changed files with 515 additions and 0 deletions
27
docker-build/Dockerfile
Normal file
27
docker-build/Dockerfile
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Get the latet Pi-hole version
|
||||
FROM pihole/pihole:2021.09
|
||||
|
||||
# Install necessary programs
|
||||
RUN apt-get update && \
|
||||
apt-get upgrade -y && \
|
||||
apt-get install -y \
|
||||
unbound \
|
||||
wget
|
||||
|
||||
# Additional configs
|
||||
# unbound
|
||||
COPY unbound-v1.9_pihole.conf /etc/unbound/unbound.conf.d/pihole.conf
|
||||
|
||||
# Download the DNS-Root-Zone. Change owner and move it to the right directory
|
||||
RUN wget -O root.hints https://www.internic.net/domain/named.root && \
|
||||
chown unbound:unbound root.hints && \
|
||||
mv root.hints /var/lib/unbound/
|
||||
|
||||
# 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
|
||||
RUN apt-get remove -y \
|
||||
wget
|
Loading…
Add table
Add a link
Reference in a new issue