kiron
Published on 2025-03-23 / 4 Visits
0

docker容器内加速下载

# debian加速
RUN sed -i "s@http://.*deb.debian.org@https://mirrors.aliyun.com@g" /etc/apt/sources.list.d/*.sources

# pip加速
RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && \
    pip config set global.trusted-host pypi.tuna.tsinghua.edu.cn