From 2a5145c13aff7d21b83564cf79c0dd4b478e8807 Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Thu, 21 Sep 2023 11:44:48 -0700 Subject: [PATCH] chore: Download dependencies to the /tmp dir before deleting --- Containerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Containerfile b/Containerfile index c18d327..20d1404 100644 --- a/Containerfile +++ b/Containerfile @@ -27,14 +27,14 @@ RUN git clone https://github.com/KyleGospo/xdg-utils-distrobox-arch.git --single rm -drf xdg-utils-distrobox-arch USER root WORKDIR / -RUN git clone https://github.com/89luca89/distrobox.git --single-branch && \ - cp distrobox/distrobox-host-exec /usr/bin/distrobox-host-exec && \ +RUN git clone https://github.com/89luca89/distrobox.git --single-branch /tmp/distrobox && \ + cp /tmp/distrobox/distrobox-host-exec /usr/bin/distrobox-host-exec && \ ln -s /usr/bin/distrobox-host-exec /usr/bin/flatpak && \ ln -s /usr/bin/distrobox-host-exec /usr/bin/firefox && \ - wget https://github.com/1player/host-spawn/releases/download/$(cat distrobox/distrobox-host-exec | grep host_spawn_version= | cut -d "\"" -f 2)/host-spawn-$(uname -m) -O distrobox/host-spawn && \ - cp distrobox/host-spawn /usr/bin/host-spawn && \ + wget https://github.com/1player/host-spawn/releases/download/$(cat /tmp/distrobox/distrobox-host-exec | grep host_spawn_version= | cut -d "\"" -f 2)/host-spawn-$(uname -m) -O /tmp/distrobox/host-spawn && \ + cp /tmp/distrobox/host-spawn /usr/bin/host-spawn && \ chmod +x /usr/bin/host-spawn && \ - rm -drf distrobox + rm -drf /tmp/distrobox # Install packages Distrobox adds automatically, this speeds up first launch RUN pacman -S \