refactor: migrate to uv package manager with pyproject.toml

This commit is contained in:
2025-11-30 17:59:58 -05:00
parent 955b378240
commit f35c099f4a
5 changed files with 96 additions and 11 deletions

View File

@@ -1,16 +1,19 @@
FROM python:3.14-slim
# Install FFmpeg
# Install FFmpeg and curl (for uv installation)
RUN apt-get update && \
apt-get install -y --no-install-recommends ffmpeg && \
apt-get install -y --no-install-recommends ffmpeg curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
WORKDIR /app
# Install Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY pyproject.toml .
RUN uv pip install --system --no-cache .
# Copy application
COPY app/ ./app/