From d7cd4fe326a840e8cbe2b51ca8b716993adb436b Mon Sep 17 00:00:00 2001 From: Huarch Date: Mon, 3 Aug 2026 10:40:03 +0800 Subject: [PATCH] chore(docker): configure TUNA conda mirror --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ab7aa5..bbeca15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,11 @@ FROM condaforge/miniforge3:latest AS runtime-base WORKDIR /app +# 使用清华大学开源软件镜像站加速 Conda/Mamba 包下载。 +RUN conda config --system --remove-key channels || true && \ + conda config --system --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ && \ + conda config --system --set show_channel_urls yes + ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple \ PIP_TRUSTED_HOST=pypi.tuna.tsinghua.edu.cn \ UV_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple