File size: 614 Bytes
fd2d4ca
 
 
 
5729a49
fd2d4ca
 
5a9d0e9
5729a49
 
 
 
 
 
fd2d4ca
5a9d0e9
 
 
fd2d4ca
 
 
 
d99af16
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-slim

WORKDIR /app

# Install system dependencies including OCR tools
RUN apt-get update && apt-get install -y \
    build-essential \
    git \
    tesseract-ocr \
    poppler-utils \
    && rm -rf /var/lib/apt/lists/*

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

# Create a directory for the local database and grant permissions
RUN mkdir -p /app/data_store && chmod 777 /app/data_store

COPY . .

EXPOSE 7860

CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]