FROM python:3.10 # Install system dependencies (FFmpeg for video processing) RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy requirements file COPY requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY . . # Launch the app CMD ["python", "app.py"]