File size: 619 Bytes
c21ecf5
f8a1f1e
c21ecf5
 
 
 
 
 
 
 
ac38f9b
 
 
0615dd1
c21ecf5
0615dd1
c21ecf5
 
0615dd1
c21ecf5
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Use the official Python image from the Docker Hub
FROM python:3.11-slim-buster

# Install system dependencies
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
        poppler-utils \
    && rm -rf /var/lib/apt/lists/* \
    || { echo "Package installation failed. Retrying in 3 seconds..."; sleep 3; apt-get update && apt-get install -y poppler-utils; }

RUN apt-get update && apt-get install -y libgl1-mesa-glx


COPY . /app

WORKDIR /app

# Install the requirements from the requirements.txt
RUN pip install -r requirements.txt


# Start the Streamlit app
CMD ["streamlit", "run", "app.py"]