Skip to content

Commit 4f24550

Browse files
Merge pull request laradock#891 from bestlong/speed-up-git-clone-and-save-space
git clone only need one depth.
2 parents 7f7d883 + 4cb4405 commit 4f24550

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

workspace/Dockerfile-56

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ RUN if [ ${INSTALL_LINUXBREW} = true ]; then \
363363
libexpat-dev libncurses-dev && \
364364

365365
# Install the Linuxbrew
366-
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew && \
366+
git clone --depth=1 https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew && \
367367

368368
echo "" >> ~/.bashrc && \
369369
echo 'export PKG_CONFIG_PATH"=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.bashrc && \

workspace/Dockerfile-70

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ RUN if [ ${INSTALL_LINUXBREW} = true ]; then \
380380
libexpat-dev libncurses-dev && \
381381

382382
# Install the Linuxbrew
383-
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew && \
383+
git clone --depth=1 https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew && \
384384

385385
echo "" >> ~/.bashrc && \
386386
echo 'export PKG_CONFIG_PATH"=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.bashrc && \

workspace/Dockerfile-71

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ RUN if [ ${INSTALL_LINUXBREW} = true ]; then \
376376
libexpat-dev libncurses-dev && \
377377

378378
# Install the Linuxbrew
379-
git clone https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew && \
379+
git clone --depth=1 https://github.com/Homebrew/linuxbrew.git ~/.linuxbrew && \
380380

381381
echo "" >> ~/.bashrc && \
382382
echo 'export PKG_CONFIG_PATH"=/usr/local/lib/pkgconfig:/usr/local/lib64/pkgconfig:/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib64/pkgconfig:/usr/share/pkgconfig:$PKG_CONFIG_PATH"' >> ~/.bashrc && \

0 commit comments

Comments
 (0)