mirror of
https://github.com/zardus/ctf-tools
synced 2024-11-10 08:24:12 +00:00
use rankmirrors to get best mirror in archlinux dockerfile
This commit is contained in:
parent
711dd21b3f
commit
e827468db9
1 changed files with 6 additions and 2 deletions
|
@ -1,7 +1,11 @@
|
|||
from base/archlinux
|
||||
|
||||
RUN echo 'Server = http://mirror1.htu.tugraz.at/archlinux/$repo/os/$arch' \
|
||||
> /etc/pacman.d/mirrorlist
|
||||
RUN cat /etc/pacman.d/mirrorlist \
|
||||
| sed 's/^#Server/Server/' \
|
||||
> /etc/pacman.d/mirrorlist.backup \
|
||||
&& rankmirrors -n 10 /etc/pacman.d/mirrorlist.backup \
|
||||
> /etc/pacman.d/mirrorlist
|
||||
|
||||
RUN echo "[multilib]" >> /etc/pacman.conf
|
||||
RUN echo "Include = /etc/pacman.d/mirrorlist" >> /etc/pacman.conf
|
||||
|
||||
|
|
Loading…
Reference in a new issue