This commit is contained in:
Michael Elkerton
2026-07-28 18:46:42 -06:00
parent f0c78858fb
commit 8fa139e77d
4 changed files with 44 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
FROM alpine:3.20
RUN apk add --no-cache unbound
# Default config location; mount your own unbound.conf over this
COPY /etc/unbound/unbound.conf /etc/unbound/unbound.conf
# Unbound needs write access to its run/chroot dirs
RUN mkdir -p /var/lib/unbound && \
unbound-anchor -a /var/lib/unbound/root.key || true
EXPOSE 53/udp 53/tcp
ENTRYPOINT ["unbound", "-d", "-c", "/etc/unbound/unbound.conf"]