From 4b17459897228bb252b5d3a9db09080df9f50763 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Sat, 12 Dec 2020 15:19:16 +0800 Subject: [PATCH] Reduce image size by setting git clone depth --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6e6b713..50e6d0f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -99,7 +99,7 @@ USER arch # download OSX-KVM WORKDIR /home/arch -RUN git clone https://github.com/kholia/OSX-KVM.git +RUN git clone --depth 1 https://github.com/kholia/OSX-KVM.git # enable ssh # docker exec .... ./enable-ssh.sh @@ -128,7 +128,7 @@ RUN sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils flex bison e WORKDIR /home/arch/OSX-KVM -RUN git clone https://github.com/corpnewt/gibMacOS.git +RUN git clone --depth 1 https://github.com/corpnewt/gibMacOS.git WORKDIR /home/arch/OSX-KVM/gibMacOS