Spaces:
Running
Running
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # System dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install tribev2 from GitHub first (not on PyPI) | |
| RUN pip install --no-cache-dir git+https://github.com/facebookresearch/tribev2.git | |
| # Install remaining dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Cache-bust: v6 (CPU fix: object.__setattr__ to bypass pydantic immutability) | |
| LABEL version="6" | |
| # Copy app | |
| COPY app.py . | |
| EXPOSE 7860 | |
| ENV PORT=7860 | |
| ENV PYTHONUNBUFFERED=1 | |
| CMD ["python", "app.py"] | |