From 6f6df62ddfe08171770f65835b6946dbde76db71 Mon Sep 17 00:00:00 2001 From: Pedro Pombeiro Date: Sun, 19 Feb 2023 04:09:54 +0100 Subject: [PATCH] Update DoTE.Dockerfile to download at build time (#483) * Update DoTE.Dockerfile to download at build time `dote_arm64` is downloaded at build time instead of at first run * Update container version --- run-pihole/DoTE.Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/run-pihole/DoTE.Dockerfile b/run-pihole/DoTE.Dockerfile index 6bf2f7b..c844f72 100644 --- a/run-pihole/DoTE.Dockerfile +++ b/run-pihole/DoTE.Dockerfile @@ -1,5 +1,10 @@ -ARG VERSION=2023.01.10 -FROM pihole/pihole:${VERSION} +ARG PIHOLE_DOCKER_TAG=2023.02.2 +FROM pihole/pihole:${PIHOLE_DOCKER_TAG} +ENV DEBIAN_FRONTEND="noninteractive" ENV DOTE_OPTS="-s 127.0.0.1:5053" -RUN echo -e "#!/bin/sh\ncurl -fsSLo /opt/dote https://github.com/chrisstaite/DoTe/releases/latest/download/dote_arm64\nchmod +x /opt/dote\n/opt/dote \\\$DOTE_OPTS -d\n" > /etc/cont-init.d/10-dote.sh - +RUN curl -fsSLo /opt/dote https://github.com/chrisstaite/DoTe/releases/latest/download/dote_arm64 && \ + chmod +x /opt/dote && \ + usermod -aG pihole www-data; \ + mkdir -p /etc/cont-init.d && \ + echo -e "#!/bin/sh\nchmod +x /opt/dote\n/opt/dote \$DOTE_OPTS -d\n" > /etc/cont-init.d/10-dote.sh && \ + chmod +x /etc/cont-init.d/10-dote.sh