FROM python:3.10-slim WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ git \ wget \ curl \ ffmpeg \ libgl1-mesa-glx \ libglib2.0-0 \ libsm6 \ libxext6 \ libxrender-dev \ && rm -rf /var/lib/apt/lists/* # Copy requirements first COPY requirements.txt . # Install SPECIFIC versions that work together RUN pip install --no-cache-dir \ gradio==3.41.1 \ huggingface-hub==0.19.4 \ numpy==1.24.4 \ pillow==10.1.0 \ opencv-python-headless==4.8.1.78 \ ffmpeg-python==0.2.0 \ moviepy==1.0.3 \ tqdm==4.66.1 # Copy app COPY app.py . EXPOSE 7860 CMD ["python", "app.py"]