Skip to content

Commit 9a9dc48

Browse files
authored
[Update]: ミラー選択にreflectorを使用
1 parent aac090d commit 9a9dc48

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
FROM archlinux:latest
2-
RUN echo -n > /etc/pacman.d/mirrorlist
3-
RUN echo 'Server = http://mirrors.cat.net/archlinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist
4-
RUN echo 'Server = http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/$repo/os/$arch' >> /etc/pacman.d/mirrorlist
5-
RUN pacman -Syyu --noconfirm
6-
RUN pacman -S --noconfirm git sudo python3 \
2+
RUN echo 'Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch' > /etc/pacman.d/mirrorlist
3+
RUN pacman -Sy --noconfirm reflector
4+
RUN reflector --protocol https -c Japan --sort rate --save /etc/pacman.d/mirrorlist
5+
RUN pacman -Syyu --noconfirm \
6+
git sudo python3 \
77
base-devel cmake ninja qt5-base \
88
archiso arch-install-scripts pyalpm
9-
RUN pacman-key --init
109
COPY . /alterlinux
1110
WORKDIR /alterlinux
11+
RUN pacman-key --init
1212
RUN ./tools/keyring.sh -a
1313
ENTRYPOINT ["./build.sh"]
1414
CMD []

0 commit comments

Comments
 (0)