Skip to content

Commit 71a707d

Browse files
authored
fix: add rate-mirrors to the correct place
1 parent ebeae62 commit 71a707d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,11 @@ RUN pacman-key --init && \
55
pacman-key --populate archlinux && \
66
pacman -Syu --noconfirm && \
77
pacman -S --noconfirm base-devel git sudo archlinux-keyring pyside6 \
8-
nano grub archiso pipewire-jack pacman-contrib \
8+
nano grub archiso pipewire-jack pacman-contrib\
99
python-gitpython python-rich python-pyxdg python-psutil python-yaml \
1010
python-six python-pycryptodome python-cachetools \
1111
python-requests python-zstandard qt6-tools gnu-free-fonts
1212

13-
#RUN curl -s "https://archlinux.org/mirrorlist/?country=IN&country=US&country=DE&country=GB&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 -
14-
RUN export TMPFILE="$(mktemp)"; \
15-
sudo true; \
16-
rate-mirrors --save=$TMPFILE arch --max-delay=43200 \
17-
&& sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup \
18-
&& sudo mv $TMPFILE /etc/pacman.d/mirrorlist
19-
2013
# Configure pacman/makepkg
2114
RUN sed -i '/^#.*\(VerbosePkgLists\|ILoveCandy\)/s/^#//' /etc/pacman.conf && \
2215
echo -e '\n[stratos]\nSigLevel = Optional TrustAll\nServer = http://repo.stratos-linux.org/' >> /etc/pacman.conf && \
@@ -26,7 +19,14 @@ RUN sed -i '/^#.*\(VerbosePkgLists\|ILoveCandy\)/s/^#//' /etc/pacman.conf && \
2619

2720
# Fetch additional packages from the StratOS repos
2821
RUN pacman -Syy --noconfirm && \
29-
pacman -S python-vdf python-inputs python-steam --noconfirm
22+
pacman -S rate-mirrorspython-vdf python-inputs python-steam --noconfirm
23+
24+
#RUN curl -s "https://archlinux.org/mirrorlist/?country=IN&country=US&country=DE&country=GB&protocol=https&use_mirror_status=on" | sed -e 's/^#Server/Server/' -e '/^#/d' | rankmirrors -n 5 -
25+
RUN export TMPFILE="$(mktemp)"; \
26+
sudo true; \
27+
rate-mirrors --save=$TMPFILE arch --max-delay=43200 \
28+
&& sudo mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist-backup \
29+
&& sudo mv $TMPFILE /etc/pacman.d/mirrorlist
3030

3131
# Add third-party keys
3232
RUN pacman-key --keyserver hkps://keyserver.ubuntu.com --recv-keys \

0 commit comments

Comments
 (0)