我有一个包含 Alpine SO 镜像仓库的 docker。
RUN apk --no-cache -X http://172.20.0.254/v3.13/community/ -X http://172.20.0.254/v3.13/main/ add php8=8.0.2-r0 php8-fpm php8-opcache php8-mysqli php8-json
...
$ docker-compose build
...
Step 3/18 : RUN apk --no-cache -X http://172.20.0.254/v3.13/community/ -X http://172.20.0.254/v3.13/main/ add php8=8.0.2-r0 php8-fpm php8-opcache php8-mysqli php8-json php8-openssl php8-curl php8-soap php8-zlib php8-xml php8-phar php8-intl php8-dom php8-xmlreader php8-ctype php8-session php8-simplexml php8-mbstring php8-gd nginx supervisor curl php8-exif php8-zip php8-fileinfo php8-iconv php8-soap tzdata htop mysql-client php8-pecl-imagick php8-pecl-redis php8-tokenizer php8-xmlwriter && rm /etc/nginx/conf.d/default.conf && rm -rf /var/cache/apk/*
---> Running in d5be1769fed9
fetch http://172.20.0.254/v3.13/main/x86_64/APKINDEX.tar.gz
WARNING: Ignoring http://172.20.0.254/v3.13/main/: operation timed out
如果在浏览器上测试没有问题。下载包。