SakibRumu commited on
Commit
1f93a9d
·
verified ·
1 Parent(s): bb56c22

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  FROM python:3.10-slim
2
 
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  tesseract-ocr \
6
  tesseract-ocr-ben \
@@ -8,15 +8,18 @@ RUN apt-get update && apt-get install -y \
8
  && apt-get clean \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Set work directory
 
 
 
12
  WORKDIR /app
13
 
14
- # Copy files
15
  COPY requirements.txt .
16
  COPY app.py .
17
 
18
  # Install Python dependencies
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
- # Run the app
22
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ # Install Tesseract and other dependencies
4
  RUN apt-get update && apt-get install -y \
5
  tesseract-ocr \
6
  tesseract-ocr-ben \
 
8
  && apt-get clean \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
+ # Set Tesseract path explicitly
12
+ ENV TESSERACT_PATH=/usr/bin/tesseract
13
+
14
+ # Setup working directory
15
  WORKDIR /app
16
 
17
+ # Copy the requirements.txt and the app.py into the container
18
  COPY requirements.txt .
19
  COPY app.py .
20
 
21
  # Install Python dependencies
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
+ # Run the application
25
  CMD ["python", "app.py"]