pihole/pihole (latest)

Published 2025-03-27 13:48:05 +01:00 by archive

Installation

docker pull git.eplg.services/archive/pihole/pihole:latest
sha256:a76541d07410a0d28f76003a7ad30d580a47b21251a2fe31532c69584cd69ca8

About this package

Pi-hole in a docker container

Image layers

ADD alpine-minirootfs-3.19.7-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=2025.03.0
ARG PADD_BRANCH=master
ARG PIHOLE_UID=1000
ARG PIHOLE_GID=1000
ENV DNSMASQ_USER=pihole
ENV FTL_CMD=no-daemon
RUN |8 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=2025.03.0 PADD_BRANCH=master PIHOLE_UID=1000 PIHOLE_GID=1000 /bin/sh -c apk add --no-cache bash bind-tools binutils coreutils curl git grep iproute2-ss jq libcap logrotate ncurses nmap-ncat procps-ng psmisc shadow sudo tzdata unzip wget # buildkit
RUN |8 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=2025.03.0 PADD_BRANCH=master 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 |8 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=2025.03.0 PADD_BRANCH=master PIHOLE_UID=1000 PIHOLE_GID=1000 /bin/sh -c git clone --depth 1 --single-branch --branch ${WEB_BRANCH} https://github.com/pi-hole/web.git /var/www/html/admin && git clone --depth 1 --single-branch --branch ${CORE_BRANCH} https://github.com/pi-hole/pi-hole.git /etc/.pihole # buildkit
RUN |8 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=2025.03.0 PADD_BRANCH=master 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 |8 TARGETPLATFORM=linux/amd64 WEB_BRANCH=master CORE_BRANCH=master FTL_BRANCH=master PIHOLE_DOCKER_TAG=2025.03.0 PADD_BRANCH=master 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"]

Labels

Key Value
org.opencontainers.image.created 2025-03-04T17:46:38.449Z
org.opencontainers.image.description Pi-hole in a docker container
org.opencontainers.image.licenses NOASSERTION
org.opencontainers.image.revision 78aee9e4b2089263359d6d7e2847028f237b7aef
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 2025.03.0
Details
Container
2025-03-27 13:48:05 +01:00
0
OCI / Docker
linux/amd64
NOASSERTION
38 MiB
Versions (1) View all
latest 2025-03-27