File size: 623 Bytes
5dbf298
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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"]