Skip to content

Commit 4c63a4b

Browse files
authored
Update Dockerfile
1 parent 007914f commit 4c63a4b

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff 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]\nindex-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.

0 commit comments

Comments
 (0)