Skip to content

Commit 4d9e279

Browse files
committed
Fix
1 parent 230d9bf commit 4d9e279

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

Dockerfile

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@ COPY requirements.txt /tmp/requirements.txt
1111

1212
# Create virtual environment with uv
1313
# 安装 pip/uv
14-
RUN python -m pip install --upgrade pip setuptools wheel uv
15-
16-
# 创建虚拟环境
17-
RUN uv venv /opt/mlflow-venv && . /opt/mlflow-venv/bin/activate
18-
19-
# 用虚拟环境的 python 安装依赖
20-
RUN uv pip install --no-cache-dir -vvv -r /tmp/requirements.txt
21-
14+
RUN python -m pip install --upgrade pip setuptools wheel uv && \
15+
uv venv /opt/mlflow-venv && \
16+
. /opt/mlflow-venv/bin/activate && \
17+
uv pip install --no-cache-dir -vvv -r /tmp/requirements.txt
2218

2319
# ---------- Runtime Stage ----------
2420
FROM python:3.11-slim-bullseye AS runtime

0 commit comments

Comments
 (0)