FROM python:3.12-slim WORKDIR /app # Install system dependencies (ffmpeg for pydub audio processing) RUN apt-get update && apt-get install -y \ ffmpeg \ && rm -rf /var/lib/apt/lists/* # Install uv COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv # Copy dependency files COPY pyproject.toml uv.lock ./ # Install dependencies RUN uv sync --frozen # Copy application code COPY backend ./backend COPY main.py ./ COPY migrations ./migrations # Expose port EXPOSE 5001 # Run with hot reload enabled CMD ["uv", "run", "python", "main.py"]