|
|
@@ -14,7 +14,7 @@ ENV PATH="/venv/bin:$PATH"
|
|
|
COPY requirements.txt /tmp/
|
|
|
|
|
|
# 关键:用 uv 安装依赖(一行命令拆分行,仅用 \ 连接,无任何行首注释)
|
|
|
-RUN /venv/bin/pip install --no-cache-dir uv \
|
|
|
+RUN /venv/bin/pip install --no-cache-dir uv -i https://mirrors.aliyun.com/pypi/simple/ \
|
|
|
&& /venv/bin/uv config set global.index-url https://mirrors.aliyun.com/pypi/simple \
|
|
|
&& /venv/bin/uv config set global.trusted-host mirrors.aliyun.com \
|
|
|
&& /venv/bin/uv pip install --no-cache --timeout 1800 -r /tmp/requirements.txt \
|