FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y \ git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1 \ && rm -rf /var/lib/apt/lists/* \ && git lfs install COPY requirements.txt . COPY *.py . COPY README.md . RUN pip install --no-cache-dir pip -U && \ pip install --no-cache-dir \ gradio==4.44.0 \ "uvicorn>=0.14.0" \ "websockets>=10.4" \ -r requirements.txt # Use Uvicorn directly — bypasses Gradio's broken launch() localhost check CMD ["python", "app.py"]