File size: 527 Bytes
9e5fcaf 3d7a63c 9e5fcaf | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | 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"] |