Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mariomare22 authored Feb 21, 2025
1 parent d330df8 commit f33379a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ COPY pihole-unbound/99-edns.conf /etc/dnsmasq.d/99-edns.conf
RUN mkdir -p /etc/services.d/unbound
COPY pihole-unbound/unbound-run /etc/services.d/unbound/run

# Create the unbound directory and set permissions
RUN mkdir -p /var/lib/unbound && \
chown pihole:pihole /var/lib/unbound

# Download the root hints file for unbound
RUN wget https://www.internic.net/domain/named.root -qO- > /var/lib/unbound/root.hints
RUN wget https://www.internic.net/domain/named.root -qO /var/lib/unbound/root.hints

# Set the entrypoint to the s6 initialization script
ENTRYPOINT ["/s6-init"]

0 comments on commit f33379a

Please sign in to comment.