OSDN Git Service

[update] : Added latest mirrorlist.
authorhayao <shun819.mail@gmail.com>
Wed, 3 Jun 2020 06:09:31 +0000 (15:09 +0900)
committerhayao <shun819.mail@gmail.com>
Wed, 3 Jun 2020 06:09:31 +0000 (15:09 +0900)
Dockerfile

index 642a319..aad47ba 100644 (file)
@@ -1,5 +1,6 @@
 FROM archlinux:latest
-RUN echo 'Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
+RUN curl -o /etc/pacman.d/mirrorlist https://www.archlinux.org/mirrorlist/?country=all&protocol=http&protocol=https&ip_version=4
+RUN sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
 RUN pacman -Syyu --noconfirm
 RUN pacman -S git archiso arch-install-scripts sudo qt5-base cmake ninja base-devel --noconfirm
 RUN git clone https://github.com/SereneTeam/alterlinux.git alterlinux/