Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| # your existing apt installs (ffmpeg etc.) stay | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg git git-lfs libsm6 libxext6 cmake rsync libgl1-mesa-glx \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| RUN python -m pip install --upgrade pip setuptools wheel | |
| COPY requirements.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| RUN pip install --no-cache-dir "gradio[oauth]==4.42.0" "uvicorn>=0.14.0" spaces | |
| COPY . /app | |
| WORKDIR /app | |
| CMD ["python", "app.py"] |