Skip to content

Commit 9b37dcd

Browse files
authored
Update Dockerfile
1 parent 0fa3142 commit 9b37dcd

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

Dockerfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff 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 && \

0 commit comments

Comments
 (0)