Skip to content

Commit

Permalink
chore: Download dependencies to the /tmp dir before deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed Sep 21, 2023
1 parent 7fcf5fc commit 2a5145c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 2a5145c

Please sign in to comment.