Skip to content

Commit bb99a76

Browse files
authored
chore: Add changes from arch-distrobox
1 parent 05e87dd commit bb99a76

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Containerfile

+7-4
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ RUN pacman -S \
4545
--noconfirm && \
4646
wget https://raw.githubusercontent.com/Shringe/LatencyFleX-Installer/main/install.sh -O /usr/bin/latencyflex && \
4747
sed -i 's@"dxvk.conf"@"/usr/share/latencyflex/dxvk.conf"@g' /usr/bin/latencyflex && \
48-
chmod +x /usr/bin/latencyflex
48+
chmod +x /usr/bin/latencyflex && \
49+
pacman -S --clean --clean && \
50+
rm -rf /var/cache/pacman/pkg/*
4951
# Steam/Lutris/Wine installed separately so they use the dependencies above and don't try to install their own.
5052

5153
# Create build user
@@ -77,6 +79,7 @@ RUN sed -i 's@ (Runtime)@@g' /usr/share/applications/steam.desktop && \
7779
rm -drf /home/build && \
7880
sed -i '/build ALL=(ALL) NOPASSWD: ALL/d' /etc/sudoers && \
7981
sed -i '/root ALL=(ALL) NOPASSWD: ALL/d' /etc/sudoers && \
82+
rm -rf /home/build/.cache/* && \
8083
rm -rf \
8184
/tmp/* \
8285
/var/cache/pacman/pkg/*
@@ -91,10 +94,10 @@ RUN sed -i 's/-march=native -mtune=native/-march=x86-64 -mtune=generic/g' /etc/m
9194
pacman -S \
9295
xdg-desktop-portal-gtk \
9396
xdg-desktop-portal-gnome \
94-
--noconfirm
97+
--noconfirm && \
98+
rm -rf /var/cache/pacman/pkg/*
9599

96100
# Cleanup
97101
RUN sed -i 's/-march=x86-64 -mtune=generic/-march=native -mtune=native/g' /etc/makepkg.conf && \
98102
rm -rf \
99-
/tmp/* \
100-
/var/cache/pacman/pkg/*
103+
/tmp/*

0 commit comments

Comments
 (0)