|
@@ -15,9 +15,11 @@ COPY requirements.txt /tmp/
|
|
|
|
|
|
|
|
# 关键:用 uv 安装依赖(一行命令拆分行,仅用 \ 连接,无任何行首注释)
|
|
# 关键:用 uv 安装依赖(一行命令拆分行,仅用 \ 连接,无任何行首注释)
|
|
|
RUN /venv/bin/pip install --no-cache-dir uv -i https://mirrors.aliyun.com/pypi/simple/ \
|
|
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 \
|
|
|
|
|
|
|
+ && /venv/bin/uv pip install \
|
|
|
|
|
+ --index-url https://mirrors.aliyun.com/pypi/simple/ \
|
|
|
|
|
+ --no-cache \
|
|
|
|
|
+ --timeout 1800 \
|
|
|
|
|
+ -r /tmp/requirements.txt \
|
|
|
&& rm -rf /root/.cache /tmp/requirements.txt
|
|
&& rm -rf /root/.cache /tmp/requirements.txt
|
|
|
|
|
|
|
|
# 项目部署
|
|
# 项目部署
|