FROM python:3.10-slim WORKDIR /home/user/app # Install system dependencies RUN apt-get update && apt-get install -y \ ffmpeg \ git \ && rm -rf /var/lib/apt/lists/* # Install Python packages COPY requirements.txt . RUN pip install --no-cache-dir pip==22.3.1 && \ pip install --no-cache-dir \ datasets \ "huggingface-hub>=0.19" \ "hf-transfer>=0.1.4" \ "protobuf<4" \ "click<8.1" \ "pydantic~=1.0" \ moviepy RUN pip install --no-cache-dir -r requirements.txt # Copy application code COPY . . # Set environment variables ENV PYTHONUNBUFFERED=1 # Run the application CMD ["python", "app.py"]