# Use a Python base image FROM python:3.9 # Set the working directory WORKDIR /app # Copy requirements.txt and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Ensure ffmpeg and other necessary system dependencies are installed RUN apt-get update && apt-get install -y ffmpeg # Copy the app files into the container COPY . . # Run the application CMD ["python", "app.py"]