Repository navigation
Expand file tree
/
Copy pathDockerfile
More file actions
51 lines (35 loc) · 1.96 KB
/
Copy pathDockerfile
File metadata and controls
51 lines (35 loc) · 1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
FROM ghcr.io/klutchell/unbound:1.24.2 AS unbound
FROM pihole/pihole:2026.02.0
LABEL maintainer="Vijayakumar Ravi"
ARG SOURCE="deb http://deb.debian.org/debian testing main"
RUN echo $SOURCE > /etc/apt/sources.list
ARG UNBOUND_UID=101
ARG UNBOUND_GID=102
RUN groupadd -g ${UNBOUND_GID} unbound \
&& useradd -g unbound -d /var/unbound -u ${UNBOUND_UID} -M -s /bin/false unbound
COPY --from=unbound /lib/ld-musl*.so.1 /lib/
COPY --from=unbound /usr/lib/libgcc_s.so.1 /usr/lib/
COPY --from=unbound /lib/libcrypto.so.3 /lib/libssl.so.3 /lib/
COPY --from=unbound /usr/lib/libsodium.so.* /usr/lib/libevent-2.1.so.* /usr/lib/libexpat.so.* /usr/lib/libhiredis.so.* /usr/lib/libnghttp2.so.* /usr/lib/
COPY --from=unbound /etc/ssl/ /etc/ssl/
COPY --from=unbound /usr/sbin/ /usr/sbin/
COPY --from=unbound /usr/bin/ /usr/bin/
COPY --from=unbound /usr/bin/drill-hc /usr/bin/drill-hc
COPY --from=unbound --chown=unbound:unbound /var/unbound/root.hints /var/unbound/root.hints
COPY --from=unbound --chown=unbound:unbound /var/unbound/root.key /var/unbound/root.key
RUN mkdir -p /etc/unbound/
COPY config/unbound-pihole.conf /etc/unbound/unbound.conf
RUN mkdir -p /etc/dnsmasq.d/
COPY config/99-edns.conf /etc/dnsmasq.d/99-edns.conf
RUN mkdir -p /etc/services.d/unbound
COPY config/unbound-run /etc/services.d/unbound/run
COPY config/unbound-package-helper /usr/lib/unbound/package-helper
RUN chmod 755 /usr/lib/unbound/package-helper
LABEL org.opencontainers.image.authors="Vijayakumar Ravi" \
org.opencontainers.image.title="vijaysrv/pihole-unbound" \
org.opencontainers.image.description="Run Pi-Hole + Unbound on Docker" \
org.opencontainers.image.url="https://github.com/VijayakumarRavi/docker-pihole-unbound" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.source="https://github.com/VijayakumarRavi/docker-pihole-unbound" \
org.opencontainers.image.original_source="https://github.com/unclamped/docker-pihole-unbound"
ENTRYPOINT ./s6-init