File size: 474 Bytes
13cad11
37b93c4
91910aa
37b93c4
91910aa
2d84ff5
 
13cad11
 
2d84ff5
 
37b93c4
2d84ff5
13cad11
 
37b93c4
2d84ff5
37b93c4
13cad11
 
37b93c4
91910aa
 
13cad11
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
FROM python:3.11-slim

WORKDIR /code

# Install PDF deps
RUN apt-get update && apt-get install -y \
    poppler-utils \
    tesseract-ocr \
    libglib2.0-0 \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade pip && \
    pip install --no-cache-dir -r requirements.txt

COPY . .

RUN mkdir -p /tmp/chroma_db /tmp/files /tmp/fonts




CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]