# Base image # Base image FROM python:3.11-slim # Avoid interactive prompts ENV DEBIAN_FRONTEND=noninteractive # Install FFmpeg + OpenCV dependencies RUN apt-get update && apt-get install -y \ ffmpeg \ libgl1 \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy files COPY requirements.txt . COPY app.py . # Install Python dependencies RUN pip install --no-cache-dir python-multipart -r requirements.txt # Expose port EXPOSE 7860 # Run the FastAPI app CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]