refactor: use uv for dependency management

This commit is contained in:
OpenClaw Bot
2026-02-17 18:17:26 +08:00
parent 96f4ffe7c1
commit 68655b58f4
3 changed files with 39 additions and 12 deletions

View File

@@ -2,14 +2,19 @@ FROM python:3.11-slim
WORKDIR /app
# Install uv
RUN pip install uv
# Install system deps
RUN apt-get update && apt-get install -y \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Install Python deps
COPY backend/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy project files
COPY backend/pyproject.toml backend/requirements.txt ./
# Install dependencies using uv
RUN uv pip install --system -r requirements.txt
# Copy code
COPY backend/ ./backend/