diff --git a/scripts/genrootfs.sh b/scripts/genrootfs.sh
index 72f2c8f9e4d4d3beae42b3128347e2abf1af7e75..377e3b936dec9d97d43b7f085b0505147a456de6 100755
--- a/scripts/genrootfs.sh
+++ b/scripts/genrootfs.sh
@@ -51,8 +51,8 @@ case $VERSION_ID in
 esac
 
 cat > "$tmp"/etc/apk/repositories <<EOF
-http://dl-cdn.alpinelinux.org/alpine/$branch/main
-http://dl-cdn.alpinelinux.org/alpine/$branch/community
+https://alpine.global.ssl.fastly.net/alpine/$branch/main
+https://alpine.global.ssl.fastly.net/alpine/$branch/community
 EOF
 
 tar --numeric-owner --exclude='dev/*' -c -C "$tmp" . | gzip -9n > "$outfile"