File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,13 +63,12 @@ RUN \
6363 # Create the configuration directory for uv.
6464 mkdir -p ~/.config/uv && \
6565 \
66- # Create the uv.toml file using a "here document".
67- cat <<EOF > ~/.config/uv/uv.toml && \
68- [tool.uv]
69- index-url = "https://mirrors.aliyun.com/pypi/simple"
70- EOF
71- # --- [ THE FIX IS HERE ] ---
72- # The '&& \' chaining operator MUST come AFTER the 'EOF' marker.
66+ # ## --- [ THE DEFINITIVE FIX IS HERE ] --- ###
67+ # Use 'printf' to create the uv.toml file. This is a single-line command
68+ # from the shell's perspective and avoids all Docker parsing issues.
69+ printf '[tool.uv]\n index-url = "https://mirrors.aliyun.com/pypi/simple"\n ' > ~/.config/uv/uv.toml && \
70+ \
71+ # Create the default conda environment.
7372 conda create -n py${PYTHON_VERSION} python=${PYTHON_VERSION} -y && \
7473 \
7574 # Pre-install a minimal set of core data science libraries.
You can’t perform that action at this time.
0 commit comments