From f15640505c6635e325869c58a16a9ea2311828d7 Mon Sep 17 00:00:00 2001 From: Gontier Julien Date: Sat, 15 Jul 2023 23:13:11 +0200 Subject: [PATCH 1/2] Remove one layer by having both git clone together Signed-off-by: Gontier Julien --- src/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dockerfile b/src/Dockerfile index 2febc7ed1..f4ba5f82b 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -31,8 +31,8 @@ RUN apk add --no-cache git \ less # download a the main repos from github -RUN git clone --branch development-v6 https://github.com/pi-hole/AdminLTE.git /var/www/html/admin -RUN git clone --branch development-v6 https://github.com/pi-hole/pi-hole.git /etc/.pihole +RUN git clone --branch development-v6 https://github.com/pi-hole/AdminLTE.git /var/www/html/admin &&\ + git clone --branch development-v6 https://github.com/pi-hole/pi-hole.git /etc/.pihole # Download the latest version of pihole-FTL for alpine: # Probably need this to be built for different FTLARCHs From 030e3753862cb2e1b9f1451626dd72b53587b9cd Mon Sep 17 00:00:00 2001 From: Snow <52894530+Gontier-Julien@users.noreply.github.com> Date: Sun, 16 Jul 2023 12:14:56 +0200 Subject: [PATCH 2/2] add a space between && and \ for readability Make it consistence with other multi-line commands. Co-authored-by: RD WebDesign Signed-off-by: Snow <52894530+Gontier-Julien@users.noreply.github.com> --- src/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dockerfile b/src/Dockerfile index f4ba5f82b..3c264d16e 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -31,7 +31,7 @@ RUN apk add --no-cache git \ less # download a the main repos from github -RUN git clone --branch development-v6 https://github.com/pi-hole/AdminLTE.git /var/www/html/admin &&\ +RUN git clone --branch development-v6 https://github.com/pi-hole/AdminLTE.git /var/www/html/admin && \ git clone --branch development-v6 https://github.com/pi-hole/pi-hole.git /etc/.pihole # Download the latest version of pihole-FTL for alpine: