File size: 623 Bytes
09d5106
5b67077
83f9467
8fe7fcb
 
09d5106
 
 
 
 
 
5b67077
83f9467
 
 
 
09d5106
5b67077
83f9467
09d5106
5b67077
09d5106
 
 
83f9467
09d5106
 
83f9467
09d5106
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.10-slim

# Install Poppler, Tesseract, and other dependencies
RUN apt-get update && \
    apt-get install -y --no-install-recommends pkg-config poppler-utils
    tesseract-ocr \
    poppler-utils \
    libsm6 \
    libxext6 \
    libgl1-mesa-glx \
    && rm -rf /var/lib/apt/lists/*

# Add Poppler to PATH
ENV PATH="/usr/bin:$PATH"

# Set the working directory
WORKDIR /home/user/app

# Copy application files
COPY . /home/user/app

# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Expose Streamlit port
EXPOSE 8501

# Run the application
CMD ["streamlit", "run", "app.py"]