File size: 728 Bytes
c1e4ce4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
31
32
FROM python:3.11-slim

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    PORT=7860

WORKDIR /app

RUN apt-get update \
  && apt-get install -y --no-install-recommends build-essential gcc \
  && rm -rf /var/lib/apt/lists/*

# Install python deps via pip (uv is not available by default on HF)
COPY pyproject.toml /app/pyproject.toml

RUN pip install --no-cache-dir --upgrade pip \
  && pip install --no-cache-dir \
    fastapi[standard]>=0.115.0 \
    pydantic-settings>=2.5.2 \
    sqlalchemy>=2.0.30 \
    psycopg2-binary>=2.9.9 \
    pandas>=2.2.2 \
    groq>=0.9.0 \
    chromadb>=0.5.5 \
    sentence-transformers>=3.0.1

COPY app /app/app

EXPOSE 7860

CMD ["python", "-m", "app"]