aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Dave Hello <[email protected]>2020-12-12 15:19:16 +0800
committerPeter Dave Hello <[email protected]>2020-12-15 15:19:16 +0800
commit4b17459897228bb252b5d3a9db09080df9f50763 (patch)
tree8b7918027e174a707889f5563e794a24bb5ceb81
parent[QOL] Documentation updates about duplicating containers (diff)
downloaddocker-osx-4b17459897228bb252b5d3a9db09080df9f50763.tar.xz
docker-osx-4b17459897228bb252b5d3a9db09080df9f50763.zip
Reduce image size by setting git clone depth
-rw-r--r--Dockerfile4
1 files 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