AzizWazir commited on
Commit
39c346e
·
verified ·
1 Parent(s): ffbb1bc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -28
Dockerfile CHANGED
@@ -1,32 +1,10 @@
1
- # Use the official Python 3.10 image as the base
2
- FROM python:3.10-slim
3
 
4
- # Install system dependencies, including Poppler and Tesseract
5
- RUN apt-get update && apt-get install -y \
6
- git \
7
- git-lfs \
8
- ffmpeg \
9
- libsm6 \
10
- libxext6 \
11
- cmake \
12
- rsync \
13
- libgl1-mesa-glx \
14
- tesseract-ocr \
15
- poppler-utils \ # Poppler for pdf2image
16
- && rm -rf /var/lib/apt/lists/* \
17
- && git lfs install
18
 
19
- # Set the working directory inside the container
20
- WORKDIR /home/user/app
21
 
22
- # Copy application files to the container
23
- COPY . /home/user/app
24
 
25
- # Install Python dependencies from requirements.txt
26
- RUN pip install --no-cache-dir -r requirements.txt
27
-
28
- # Expose the port for Streamlit
29
- EXPOSE 8501
30
-
31
- # Command to run the Streamlit app
32
- CMD ["streamlit", "run", "app.py"]
 
1
+ FROM python:3.10
 
2
 
3
+ WORKDIR /app
 
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
+ COPY requirements.txt .
6
+ RUN pip install -r requirements.txt
7
 
8
+ COPY . .
 
9
 
10
+ CMD ["python", "app.py"]