Skip to content

Commit c3a00e5

Browse files
committed
refresh mirrors before downloading
1 parent 9864ccc commit c3a00e5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ ARG user=user
1515
RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.conf && \
1616
sed -i '/CheckSpace/s/^/#/g' /etc/pacman.conf && \
1717
sed -i '/OPTIONS/s/debug/!debug/g' /etc/makepkg.conf && \
18-
pacman-key --init && pacman --noconfirm -Syyuu
18+
pacman-key --init
19+
20+
RUN cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
21+
RUN sed -i 's/^#Server/Server/' /etc/pacman.d/mirrorlist.backup
22+
RUN rankmirrors -n 10 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
23+
24+
RUN pacman --noconfirm -Syyuu
1925

2026
RUN pacman --noconfirm -S base base-devel bat desktop-file-utils \
2127
diffoscope diffutils wl-clipboard eza flatpak-builder git-delta \

0 commit comments

Comments
 (0)