We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 230d9bf commit 4d9e279Copy full SHA for 4d9e279
1 file changed
Dockerfile
@@ -11,14 +11,10 @@ COPY requirements.txt /tmp/requirements.txt
11
12
# Create virtual environment with uv
13
# 安装 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
+RUN python -m pip install --upgrade pip setuptools wheel uv && \
+ uv venv /opt/mlflow-venv && \
+ . /opt/mlflow-venv/bin/activate && \
+ uv pip install --no-cache-dir -vvv -r /tmp/requirements.txt
22
23
# ---------- Runtime Stage ----------
24
FROM python:3.11-slim-bullseye AS runtime
0 commit comments