fix(docker): error handling for reflector installation

This commit is contained in:
2025-12-29 21:31:27 +03:00
parent caac08a7d7
commit 569decbbd9

View File

@@ -3,7 +3,9 @@ FROM archlinux
ENV TERM=xterm
RUN pacman -Syu --noconfirm
RUN pacman -S --needed --noconfirm reflector && reflector --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist
# reflector is optional - if it fails due to network issues, continue with default mirrorlist
RUN pacman -S --needed --noconfirm reflector && \
(reflector --latest 20 --protocol https --sort rate --save /etc/pacman.d/mirrorlist || true)
RUN pacman-key --init
RUN pacman -S --needed --noconfirm \
autoconf \