refactor: migrate to uv package manager with pyproject.toml
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user