Skip to content

Commit 3cfd415

Browse files
authored
Add rate-mirrors-bin
1 parent 81e8c33 commit 3cfd415

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ RUN pacman -Sy --noconfirm && \
2323

2424
#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 -
2525

26-
# RUN export TMPFILE="/tmp/ratemir" && \
27-
# pacman -S rate-mirrors-bin --noconfirm && \
28-
# touch "$TMPFILE" && \
29-
# rate-mirrors --save="$TMPFILE" --allow-root arch --completion=1 --max-delay=43200 && \
30-
# mv $TMPFILE /etc/pacman.d/mirrorlist
26+
RUN export TMPFILE="/tmp/ratemir" && \
27+
pacman -S rate-mirrors-bin --noconfirm && \
28+
touch "$TMPFILE" && \
29+
rate-mirrors --save="$TMPFILE" --allow-root arch --completion=1 --max-delay=43200 && \
30+
mv $TMPFILE /etc/pacman.d/mirrorlist
3131

3232
# Fetch from the updated mirrors
3333
RUN pacman -Syy --noconfirm

0 commit comments

Comments
 (0)