1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/ftldns/Dockerfile

37 lines
1.1 KiB
Docker
Raw Normal View History

2023-11-26 10:26:19 +02:00
#
# Dockerfile for FTLDNS (pihole-FTL)
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
2024-09-11 11:04:43 +02:00
ARG FTL_VERSION=v5.25.2
2023-11-28 15:53:04 +02:00
ARG FTL_FILE=pihole-FTL-musl-linux-x86_64
2024-02-27 13:20:48 +02:00
ARG FTL_GIT=https://github.com/pi-hole
ARG FTL_URL=${FTL_GIT}/FTL/releases/download/${FTL_VERSION}/${FTL_FILE}
2023-11-26 10:26:19 +02:00
RUN set -xe \
&& apk add --no-cache curl \
&& echo "conf-dir=/etc/pihole/dnsmasq.d,*.conf" >> /etc/dnsmasq.conf \
2023-11-28 15:53:04 +02:00
&& curl -sSL ${FTL_URL} -o /usr/bin/pihole-FTL \
2023-11-26 10:26:19 +02:00
&& chmod +x /usr/bin/pihole-FTL \
&& pihole-FTL --version \
2024-02-27 13:20:48 +02:00
&& 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 \
2024-02-28 04:58:21 +02:00
-O ${FTL_GIT}/pi-hole/raw/master/advanced/Scripts/chronometer.sh \
2024-02-27 13:20:48 +02:00
-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 \
2024-02-28 04:58:21 +02:00
&& chmod +x /usr/local/bin/pihole /opt/pihole/*.sh \
2023-11-26 10:26:19 +02:00
&& apk del curl
VOLUME /etc/pihole
2023-11-28 15:34:22 +02:00
EXPOSE 4711/tcp \
53/tcp \
2023-11-26 10:26:19 +02:00
53/udp
CMD ["pihole-FTL", "-f"]