File size: 582 Bytes
e40e66b
 
c613cc0
 
e40e66b
c613cc0
 
cf30fa1
996f757
 
 
639ade0
c613cc0
639ade0
 
e40e66b
 
639ade0
 
 
 
 
e40e66b
 
639ade0
 
 
 
af4f4a7
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
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 && pdfinfo -version

# Debug - try and find the location of pdfinfo
RUN find / -name "pdfinfo"

# 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 ["python", "app.py"]