修正 Dockerfile 中 pip 安装命令的参数,使用 uv 加快部署
This commit is contained in:
+1
-1
@@ -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 下,实现了分离
|
||||
|
||||
Reference in New Issue
Block a user