-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (17 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
24 lines (17 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM debian:stable-slim AS builder
# hadolint ignore=DL3008
RUN apt-get update\
&& apt-get install -y unbound unbound-anchor dns-root-data curl ca-certificates --no-install-recommends
COPY setup-unbound.sh /
RUN bash /setup-unbound.sh
FROM debian:stable-slim AS final
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install -y unbound --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /etc/unbound/*
USER unbound
COPY --from=builder --chown=unbound:unbound /etc/unbound/ /etc/unbound/
COPY --from=builder --chown=unbound:unbound /usr/share/dns/root.key /usr/share/dns/root.key
COPY --chown=unbound:unbound server.conf /etc/unbound/unbound.conf.d/server.conf
ENTRYPOINT ["/usr/sbin/unbound", "-d", "-v", "-p"]