chore(docker): configure TUNA conda mirror
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user