From 202b6794b61a4e3bf5731f6f2a1852d01208c102 Mon Sep 17 00:00:00 2001 From: Raees Iqbal Date: Thu, 30 Jun 2016 13:00:46 +0500 Subject: [PATCH] Clone with only last commit of git repos --- boring-nginx/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boring-nginx/Dockerfile b/boring-nginx/Dockerfile index 8ea05d1..914d5fc 100644 --- a/boring-nginx/Dockerfile +++ b/boring-nginx/Dockerfile @@ -36,12 +36,12 @@ RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/a openssl \ bind-tools \ tini@commuedge \ - && cd /tmp && git clone https://github.com/bagder/libbrotli && cd libbrotli \ + && cd /tmp && git clone https://github.com/bagder/libbrotli --depth=1 && cd libbrotli \ && ./autogen.sh && ./configure && make -j ${NB_CORES} && make install \ && cd /tmp \ - && git clone https://github.com/google/ngx_brotli \ - && git clone https://github.com/openresty/headers-more-nginx-module \ - && git clone https://boringssl.googlesource.com/boringssl \ + && git clone https://github.com/google/ngx_brotli --depth=1 \ + && git clone https://github.com/openresty/headers-more-nginx-module --depth=1 \ + && git clone https://boringssl.googlesource.com/boringssl --depth=1 \ && cd boringssl \ && mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. \ && make -j ${NB_CORES} && cd .. \