awptechnologies

pihole-unbound (dev)

Published 2025-10-05 22:06:55 -04:00 by awptechnologies in awptechnologies/Pihole-Unbound

Installation

docker pull gitea.awptechnologies.co/awptechnologies/pihole-unbound:dev
sha256:95f759c2aaf7756057dc6209326b71855861519358aa153b7f615fb6f46db151

About this package

Pi-hole in a docker container

Image Layers

ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
ARG TARGETPLATFORM=linux/amd64
ARG WEB_BRANCH=master
ARG CORE_BRANCH=master
ARG FTL_BRANCH=master
ARG PIHOLE_DOCKER_TAG=development
ARG PADD_BRANCH=master
ARG CORE_FORK=pi-hole
ARG WEB_FORK=pi-hole
ARG PADD_FORK=pi-hole
ARG PIHOLE_UID=1000
ARG PIHOLE_GID=1000
ENV DNSMASQ_USER=pihole
ENV FTL_CMD=no-daemon
RUN |11 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=development PADD_BRANCH=master CORE_FORK=pi-hole WEB_FORK=pi-hole PADD_FORK=pi-hole PIHOLE_UID=1000 PIHOLE_GID=1000 /bin/sh -c apk add --no-cache bash bash-completion bind-tools binutils coreutils curl git grep iproute2 jq libcap logrotate ncurses procps-ng psmisc shadow sudo tzdata unzip wget # buildkit
RUN |11 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=development PADD_BRANCH=master CORE_FORK=pi-hole WEB_FORK=pi-hole PADD_FORK=pi-hole PIHOLE_UID=1000 PIHOLE_GID=1000 /bin/sh -c if [ "${PIHOLE_DOCKER_TAG}" = "nightly" ]; then apk add --no-cache gdb screen && echo "ulimit -c unlimited" >> /etc/profile && echo "handle SIGHUP nostop SIGPIPE nostop SIGTERM nostop SIG32 nostop SIG33 nostop SIG34 nostop SIG35 nostop SIG36 nostop SIG37 nostop SIG38 nostop SIG39 nostop SIG40 nostop SIG41 nostop" > /root/.gdbinit; fi # buildkit
ADD https://ftl.pi-hole.net/macvendor.db /macvendor.db # buildkit
COPY crontab.txt /crontab.txt # buildkit
ADD --chmod=0755 https://raw.githubusercontent.com/pi-hole/PADD/master/padd.sh /usr/local/bin/padd # buildkit
RUN |11 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=development PADD_BRANCH=master CORE_FORK=pi-hole WEB_FORK=pi-hole PADD_FORK=pi-hole PIHOLE_UID=1000 PIHOLE_GID=1000 /bin/sh -c clone_repo() { FORK="$1"; REPO="$2"; BRANCH="$3"; DEST="$4"; CLONE_BRANCH="$BRANCH"; if [ "$BRANCH" = "master" ]; then CLONE_BRANCH=$(curl -s https://api.github.com/repos/${FORK}/${REPO}/releases/latest | jq -r .tag_name); fi; git clone --branch "$CLONE_BRANCH" --single-branch --depth 1 "https://github.com/${FORK}/${REPO}.git" "$DEST"; cd "$DEST"; if [ "$BRANCH" = "master" ]; then git checkout -b master; fi; }; clone_repo "${WEB_FORK}" "web" "${WEB_BRANCH}" "/var/www/html/admin"; clone_repo "${CORE_FORK}" "pi-hole" "${CORE_BRANCH}" "/etc/.pihole" # buildkit
RUN |11 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=development PADD_BRANCH=master CORE_FORK=pi-hole WEB_FORK=pi-hole PADD_FORK=pi-hole PIHOLE_UID=1000 PIHOLE_GID=1000 /bin/sh -c cd /etc/.pihole && install -Dm755 -d /opt/pihole && install -Dm755 -t /opt/pihole gravity.sh && install -Dm755 -t /opt/pihole ./advanced/Scripts/*.sh && install -Dm755 -t /opt/pihole ./advanced/Scripts/COL_TABLE && install -Dm755 -d /etc/pihole && install -Dm644 -t /etc/pihole ./advanced/Templates/logrotate && install -Dm755 -d /var/log/pihole && install -Dm755 -d /var/lib/logrotate && install -Dm755 -t /usr/local/bin pihole && install -Dm644 ./advanced/bash-completion/pihole /etc/bash_completion.d/pihole && install -T -m 0755 ./advanced/Templates/pihole-FTL-prestart.sh /opt/pihole/pihole-FTL-prestart.sh && install -T -m 0755 ./advanced/Templates/pihole-FTL-poststop.sh /opt/pihole/pihole-FTL-poststop.sh && addgroup -S pihole -g ${PIHOLE_GID} && adduser -S pihole -G pihole -u ${PIHOLE_UID} && echo "${PIHOLE_DOCKER_TAG}" > /pihole.docker.tag # buildkit
COPY --chmod=0755 bash_functions.sh /usr/bin/bash_functions.sh # buildkit
COPY --chmod=0755 start.sh /usr/bin/start.sh # buildkit
EXPOSE map[53/tcp:{} 53/udp:{}]
EXPOSE map[67/udp:{}]
EXPOSE map[80/tcp:{}]
EXPOSE map[123/udp:{}]
EXPOSE map[443/tcp:{}]
RUN |11 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=development PADD_BRANCH=master CORE_FORK=pi-hole WEB_FORK=pi-hole PADD_FORK=pi-hole PIHOLE_UID=1000 PIHOLE_GID=1000 /bin/sh -c if [ "$TARGETPLATFORM" = "linux/amd64" ]; then FTLARCH=amd64; elif [ "$TARGETPLATFORM" = "linux/386" ]; then FTLARCH=386; elif [ "$TARGETPLATFORM" = "linux/arm/v6" ]; then FTLARCH=armv6; elif [ "$TARGETPLATFORM" = "linux/arm/v7" ]; then FTLARCH=armv7; elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then FTLARCH=arm64; elif [ "$TARGETPLATFORM" = "linux/riscv64" ]; then FTLARCH=riscv64; else FTLARCH=amd64; fi && echo "Arch: ${TARGETPLATFORM}, FTLARCH: ${FTLARCH}" && if [ "${FTL_BRANCH}" = "master" ]; then URL="https://github.com/pi-hole/ftl/releases/latest/download"; else URL="https://ftl.pi-hole.net/${FTL_BRANCH}"; fi && curl -sSL "${URL}/pihole-FTL-${FTLARCH}" -o /usr/bin/pihole-FTL && chmod +x /usr/bin/pihole-FTL && readelf -h /usr/bin/pihole-FTL || (echo "Error with downloaded FTL binary" && exit 1) && /usr/bin/pihole-FTL -vv # buildkit
HEALTHCHECK &{["CMD-SHELL" "dig -p $(pihole-FTL --config dns.port) +short +norecurse +retry=0 @127.0.0.1 pi.hole || exit 1"] "0s" "0s" "0s" "0s" '\x00'}
ENTRYPOINT ["start.sh"]
RUN /bin/sh -c apk update # buildkit
RUN /bin/sh -c apk add --no-cache unbound curl ca-certificates && curl -o /etc/unbound/root.hints https://www.internic.net/domain/named.cache # buildkit
RUN /bin/sh -c apk add --no-cache iputils-ping # buildkit
COPY config/unbound/unbound.conf /etc/unbound/unbound.conf # buildkit
COPY config/unbound/unbound.conf.d /etc/unbound/unbound.conf.d # buildkit
COPY config/unbound/unbound.log /etc/unbound/unbound.log # buildkit
COPY config/entrypoint.sh /usr/bin/entrypoint.sh # buildkit
COPY config/unbound/unbound.sh /usr/bin/unbound.sh # buildkit
RUN /bin/sh -c chmod +x /usr/bin/entrypoint.sh # buildkit
RUN /bin/sh -c chmod +x /usr/bin/unbound.sh # buildkit
WORKDIR /usr/bin
ENTRYPOINT ["entrypoint.sh"]

Labels

Key Value
org.opencontainers.image.created 2025-08-16T11:31:39.132Z
org.opencontainers.image.description Pi-hole in a docker container
org.opencontainers.image.licenses NOASSERTION
org.opencontainers.image.revision d7bb7a3e5898b6682bf1b0ed89c638b387fe6c5e
org.opencontainers.image.source https://github.com/pi-hole/docker-pi-hole
org.opencontainers.image.title docker-pi-hole
org.opencontainers.image.url https://github.com/pi-hole/docker-pi-hole
org.opencontainers.image.version development
Details
Container
2025-10-05 22:06:55 -04:00
290
OCI / Docker
linux/amd64
NOASSERTION
44 MiB
Versions (3) View all
latest 2025-12-21
nightly 2025-12-21
dev 2025-10-05