diff --git a/ftldns/Dockerfile.debian b/ftldns/Dockerfile.debian new file mode 100644 index 0000000..fa27123 --- /dev/null +++ b/ftldns/Dockerfile.debian @@ -0,0 +1,37 @@ +# +# Dockerfile for FTLDNS (pihole-FTL) +# + +FROM debian:12-slim +MAINTAINER EasyPi Software Foundation + +ARG FTL_VERSION=v5.25.1 +ARG FTL_FILE=pihole-FTL-aarch64-linux-gnu +ARG FTL_GIT=https://github.com/pi-hole +ARG FTL_URL=${FTL_GIT}/FTL/releases/download/${FTL_VERSION}/${FTL_FILE} + +RUN set -xe \ + && apt update -y \ + && apt install -y curl procps \ + && echo "conf-dir=/etc/pihole/dnsmasq.d,*.conf" >> /etc/dnsmasq.conf \ + && curl -sSL ${FTL_URL} -o /usr/bin/pihole-FTL \ + && chmod +x /usr/bin/pihole-FTL \ + && pihole-FTL --version \ + && mkdir -p /opt/pihole \ + && cd /opt/pihole \ + && curl -sSL -O ${FTL_GIT}/pi-hole/raw/master/advanced/Scripts/list.sh \ + -O ${FTL_GIT}/pi-hole/raw/master/advanced/Scripts/utils.sh \ + -O ${FTL_GIT}/pi-hole/raw/master/advanced/Scripts/COL_TABLE \ + && cd /usr/local/bin \ + && curl -sSL ${FTL_GIT}/pi-hole/raw/master/pihole -o /usr/local/bin/pihole \ + && chmod +x /usr/local/bin/pihole /opt/pihole/list.sh \ + && apt remove -y curl \ + && rm -rf /var/lib/apt/lists/* + +VOLUME /etc/pihole + +EXPOSE 4711/tcp \ + 53/tcp \ + 53/udp + +CMD ["pihole-FTL", "-f"]