FROM python:3.12-slim RUN apt-get update && apt-get -y install \ ffmpeg \ && rm -rf /var/lib/apt/lists/* COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ # Create app directory WORKDIR /app # Copy dependency definition files COPY pyproject.toml uv.lock ./ # Install dependencies ENV UV_HTTP_TIMEOUT=1200 RUN uv sync # Copy the rest of the application COPY . . EXPOSE 5000 CMD [ "uv", "run", "api.py" ]