FROM python:3.10-busterRUN (echo "deb http://mirrors.cloud.aliyuncs.com/debian/ buster main non-free contrib" > /etc/apt/sources.list) RUN (apt-get update) && (apt-get upgrade -y)RUN (apt-get install -y sysstat vim wget httpie netcat htop curl) WORKDIR /codeRUN /usr/local/bin/python -m pip install --upgrade pip -i http://mirrors.cloud.aliyuncs.com/pypi/simple/ --trusted-host mirrors.cloud.aliyuncs.comCOPY requirements-prd.txt /code/RUN pip install -r requirements-prd.txt -i http://mirrors.cloud.aliyuncs.com/pypi/simple/ --trusted-host mirrors.cloud.aliyuncs.comCOPY config.yaml /code/COPY . /code/ENV RUN_MODE=prd
下面脚本,报错如下
Get:36 http://mirrors.cloud.aliyuncs.com/debian buster/main amd64 vim amd64 2:8.1.0875-5+deb10u2 [1281 kB]Fetched 20.6 MB in 28s (725 kB/s)[91mE: Failed to fetch http://mirrors.cloud.aliyuncs.com/debian/pool/main/g/gsasl/libgsasl7_1.8.0-8+b2_amd64.deb 404 Not Found [IP: 100.100.2.148 80]E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
然而看来一下官网又不是
https://wiki.debian.org/LTS
预计还是不靠谱的 aliyun 导致的