[Fuego] [PATCH 9/9] Set depth to "one" and download just a single-branch on git clones

Guilherme Campos Camargo guicc at profusion.mobi
Fri Jan 26 17:35:45 UTC 2018


In order to improve git clone speeds

Signed-off-by: Guilherme Campos Camargo <guicc at profusion.mobi>
---
 Dockerfile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index 499dd52..0eeeca0 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -120,13 +120,16 @@ RUN ./install.sh
 COPY frontend-install/setup/serial /setup/serial
 WORKDIR /setup
 
-RUN git clone https://github.com/tbird20d/ttc.git /usr/local/src/ttc && \
+RUN git clone https://github.com/tbird20d/ttc.git \
+        --depth 1 --single-branch /usr/local/src/ttc && \
     ./serial/setup-ttc.sh
 
-RUN git clone https://github.com/frowand/serio.git /usr/local/src/serio && \
+RUN git clone https://github.com/frowand/serio.git \
+        --depth 1 --single-branch /usr/local/src/serio && \
     ./serial/setup-serio.sh
 
-RUN git clone https://github.com/tbird20d/serlogin.git /usr/local/src/serlogin && \
+RUN git clone https://github.com/tbird20d/serlogin.git \
+        --depth 1 --single-branch /usr/local/src/serlogin && \
     ./serial/setup-serlogin.sh
 
 COPY frontend-install/setup/lava /setup/lava
-- 
2.15.1



More information about the Fuego mailing list