File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,12 +65,16 @@ RUN \
6565 curl -LsSf https://astral.sh/uv/install.sh | sh && \
6666 \
6767 # Configure Conda to use Tsinghua University mirrors for faster package downloads.
68- conda config --set show_channel_urls true && \
69- conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main && \
70- conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r && \
71- conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2 && \
68+ # We add our desired channels first.
7269 conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/conda-forge/ && \
73- conda config --set-default-channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main && \
70+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ && \
71+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r/ && \
72+ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2/ && \
73+ # --- [ THE FIX IS HERE ] ---
74+ # Then, we tell conda to NOT use the built-in 'defaults' channels.
75+ conda config --set nodefaults true && \
76+ # (Optional) We can verify the channel configuration.
77+ conda config --set show_channel_urls true && \
7478 \
7579 # Create the default conda environment. This will be fast due to the mirror.
7680 conda create -n py${PYTHON_VERSION} python=${PYTHON_VERSION} -y && \
You can’t perform that action at this time.
0 commit comments