Skip to content

Commit 2c2c945

Browse files
committed
Install rankmirrors first
1 parent c3a00e5 commit 2c2c945

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ RUN echo -e "keyserver-options auto-key-retrieve" >> /etc/pacman.d/gnupg/gpg.con
1717
sed -i '/OPTIONS/s/debug/!debug/g' /etc/makepkg.conf && \
1818
pacman-key --init
1919

20+
RUN pacman --noconfirm --needed -S pacman-contrib
2021
RUN cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup
2122
RUN sed -i 's/^#Server/Server/' /etc/pacman.d/mirrorlist.backup
2223
RUN rankmirrors -n 10 /etc/pacman.d/mirrorlist.backup > /etc/pacman.d/mirrorlist
2324

2425
RUN pacman --noconfirm -Syyuu
2526

26-
RUN pacman --noconfirm -S base base-devel bat desktop-file-utils \
27+
RUN pacman --noconfirm --needed -S base base-devel bat desktop-file-utils \
2728
diffoscope diffutils wl-clipboard eza flatpak-builder git-delta \
2829
micro qemu-base starship swtpm time traceroute trash-cli tree wget \
2930
zsh inetutils fzf python-pip python-virtualenv python-gitlab ruff \

0 commit comments

Comments
 (0)