File size: 570 Bytes
b13ec53
 
 
 
 
 
476a47b
b13ec53
c6f6aa2
 
b13ec53
c6f6aa2
 
 
 
 
 
 
 
 
 
 
 
 
 
f8d86d1
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
FROM python:3.10

# Install Poppler
RUN apt-get update && apt-get install -y poppler-utils

# Verify Poppler installation and show exact path of pdfinfo
RUN which pdfinfo && /usr/bin/pdfinfo -v

# Ensure Poppler is in PATH
ENV PATH="/usr/local/bin:/usr/bin:${PATH}"

# Set working directory
WORKDIR /app

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

# Copy application code
COPY . /app

# Expose the port
EXPOSE 7860

# Run the app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]