neerajkalyank commited on
Commit
a65cdee
1 Parent(s): d4f07d5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -5
Dockerfile CHANGED
@@ -1,14 +1,11 @@
1
- # Use an official Python image from Docker Hub
2
  FROM python:3.10-slim
3
 
4
- # Install system dependencies and Tesseract OCR
5
  RUN apt-get update && \
6
  apt-get install -y tesseract-ocr && \
7
  apt-get clean
8
 
9
- # Set the environment variable for Tesseract to be in PATH
10
- ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/tessdata/
11
-
12
  # Copy requirements.txt and install Python dependencies
13
  COPY requirements.txt .
14
  RUN pip install -r requirements.txt
 
1
+ # Use a slim Python image
2
  FROM python:3.10-slim
3
 
4
+ # Install Tesseract OCR and dependencies
5
  RUN apt-get update && \
6
  apt-get install -y tesseract-ocr && \
7
  apt-get clean
8
 
 
 
 
9
  # Copy requirements.txt and install Python dependencies
10
  COPY requirements.txt .
11
  RUN pip install -r requirements.txt