Merge a few WORKDIR & RUN git clone in Dockerfile

This will reduce the instructions and Docker image layers.
This commit is contained in:
Peter Dave Hello 2020-12-17 00:57:22 +08:00
parent 90c346cd1a
commit 70573dea14

View File

@ -95,8 +95,7 @@ RUN tee -a sshd_config <<< 'AllowTcpForwarding yes' \
USER arch USER arch
# download OSX-KVM # download OSX-KVM
WORKDIR /home/arch RUN git clone --depth 1 https://github.com/kholia/OSX-KVM.git /home/arch/OSX-KVM
RUN git clone --depth 1 https://github.com/kholia/OSX-KVM.git
# enable ssh # enable ssh
# docker exec .... ./enable-ssh.sh # docker exec .... ./enable-ssh.sh
@ -123,9 +122,7 @@ RUN sudo pacman -Syu qemu libvirt dnsmasq virt-manager bridge-utils flex bison e
# RUN sudo systemctl enable libvirtd.service # RUN sudo systemctl enable libvirtd.service
# RUN sudo systemctl enable virtlogd.service # RUN sudo systemctl enable virtlogd.service
WORKDIR /home/arch/OSX-KVM RUN git clone --depth 1 https://github.com/corpnewt/gibMacOS.git /home/arch/OSX-KVM/gibMacOS
RUN git clone --depth 1 https://github.com/corpnewt/gibMacOS.git
WORKDIR /home/arch/OSX-KVM/gibMacOS WORKDIR /home/arch/OSX-KVM/gibMacOS