File size: 624 Bytes
ce4c808
 
eea39e2
ce4c808
 
 
 
 
 
 
 
 
eea39e2
 
 
4982173
eea39e2
 
ce4c808
 
4982173
0652e38
da68dce
ce4c808
 
 
 
 
 
1d450a7
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.9-slim

WORKDIR /app

# Install system dependencies
RUN apt-get update && apt-get install -y \
    tesseract-ocr \
    poppler-utils \
    libgl1-mesa-glx \
    libglib2.0-0 \
    && rm -rf /var/lib/apt/lists/*

# Create data directory
RUN mkdir -p /app/data && \
    chmod -R 777 /app/data

# Copy requirements and install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy application files
COPY . .

# Streamlit configuration
ENV STREAMLIT_SERVER_PORT=7860
ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0

# Set up entry point
ENTRYPOINT ["streamlit", "run"]
CMD ["app.py"]