File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,11 @@ RUN mkdir "/home/${NB_USER}/work" && \
78
78
# Install conda as jovyan and check the sha256 sum provided on the download site
79
79
WORKDIR /tmp
80
80
81
+ # CONDA_MIRROR is a mirror prefix to speed up downloading
82
+ # For example, people from mainland China could set it as
83
+ # https://mirrors.tuna.tsinghua.edu.cn/github-release/conda-forge/miniforge/LatestRelease
84
+ ARG CONDA_MIRROR=https://github.com/conda-forge/miniforge/releases/latest/download
85
+
81
86
# ---- Miniforge installer ----
82
87
# Check https://github.com/conda-forge/miniforge/releases
83
88
# Package Manager and Python implementation to use (https://github.com/conda-forge/miniforge)
@@ -89,7 +94,7 @@ RUN set -x && \
89
94
# Miniforge installer
90
95
miniforge_arch=$(uname -m) && \
91
96
miniforge_installer="Mambaforge-Linux-${miniforge_arch}.sh" && \
92
- wget --quiet "https://github.com/conda-forge/miniforge/releases/latest/download /${miniforge_installer}" && \
97
+ wget --quiet "${CONDA_MIRROR} /${miniforge_installer}" && \
93
98
/bin/bash "${miniforge_installer}" -f -b -p "${CONDA_DIR}" && \
94
99
rm "${miniforge_installer}" && \
95
100
# Conda configuration see https://conda.io/projects/conda/en/latest/configuration.html
You can’t perform that action at this time.
0 commit comments