aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsickcodes <[email protected]>2022-11-16 14:44:37 +0000
committersickcodes <[email protected]>2022-11-16 14:44:37 +0000
commitdab7fc884c699119a221274911476161075eda49 (patch)
tree1f3217be4050e82bffbdd3fca1d686fcc0726d89
parentarchlinux image keyring issue (diff)
downloaddocker-osx-dab7fc884c699119a221274911476161075eda49.tar.xz
docker-osx-dab7fc884c699119a221274911476161075eda49.zip
Add Worldwide mirrors
-rw-r--r--Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index 93572ac..0bf5a51 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -67,6 +67,10 @@ ARG RANKMIRRORS
ARG MIRROR_COUNTRY=US
ARG MIRROR_COUNT=10
+RUN tee /etc/pacman.d/mirrorlist <<< 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch' \
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
+ && tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \
+
# Fixes issue with invalid GPG keys: update the archlinux-keyring package to get the latest keys, then remove and regenerate gnupg keys
RUN pacman -Sy archlinux-keyring --noconfirm \
&& rm -rf /etc/pacman.d/gnupg \
@@ -80,9 +84,6 @@ RUN if [[ "${RANKMIRRORS}" ]]; then \
| sed -e 's/^#Server/Server/' -e '/^#/d' \
| head -n "$((${MIRROR_COUNT:-10}+1))" \
| bash ./rankmirrors --verbose --max-time 5 - > /etc/pacman.d/mirrorlist \
- && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirrors.evowise.com/archlinux/$repo/os/$arch' \
- && tee -a /etc/pacman.d/mirrorlist <<< 'Server = http://mirror.rackspace.com/archlinux/$repo/os/$arch' \
- && tee -a /etc/pacman.d/mirrorlist <<< 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch' \
&& cat /etc/pacman.d/mirrorlist \
; fi