修正 Dockerfile 中 pip 安装命令的参数,使用 uv 加快部署

This commit is contained in:
2026-03-17 15:56:06 +08:00
parent adb5dc01fb
commit 2ea5ce14ba
+1 -1
View File
@@ -8,7 +8,7 @@ RUN conda install -y -c conda-forge python=3.12 pymetis && \
COPY requirements.txt .
RUN pip install uv
RUN uv pip install --no-cache-dir -r requirements.txt
RUN uv pip install --system --no-cache-dir -r requirements.txt
# 将代码放入子目录 'app',将数据放入子目录 'db_inp'
# 这样临时文件默认会生成在 /app 下,而代码在 /app/app 下,实现了分离