AzizWazir commited on
Commit
83f9467
·
verified ·
1 Parent(s): 4617de1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -5
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10-slim
2
 
3
- # Install system dependencies including Poppler and Tesseract
4
  RUN apt-get update && apt-get install -y \
5
  tesseract-ocr \
6
  poppler-utils \
@@ -9,17 +9,20 @@ RUN apt-get update && apt-get install -y \
9
  libgl1-mesa-glx \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
- # Set working directory
 
 
 
13
  WORKDIR /home/user/app
14
 
15
- # Copy application files to the container
16
  COPY . /home/user/app
17
 
18
  # Install Python dependencies
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
- # Expose the port Streamlit will run on
22
  EXPOSE 8501
23
 
24
- # Run the Streamlit app
25
  CMD ["streamlit", "run", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Install Poppler, Tesseract, and other dependencies
4
  RUN apt-get update && apt-get install -y \
5
  tesseract-ocr \
6
  poppler-utils \
 
9
  libgl1-mesa-glx \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # Add Poppler to PATH
13
+ ENV PATH="/usr/bin:$PATH"
14
+
15
+ # Set the working directory
16
  WORKDIR /home/user/app
17
 
18
+ # Copy application files
19
  COPY . /home/user/app
20
 
21
  # Install Python dependencies
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
+ # Expose Streamlit port
25
  EXPOSE 8501
26
 
27
+ # Run the application
28
  CMD ["streamlit", "run", "app.py"]