Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
3577549
1
Parent(s):
a65cdee
Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
@@ -1,11 +1,17 @@
|
|
1 |
-
# Use
|
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
|
|
|
1 |
+
# Use an official Python slim image
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
+
# Install Tesseract OCR and its dependencies
|
5 |
RUN apt-get update && \
|
6 |
apt-get install -y tesseract-ocr && \
|
7 |
apt-get clean
|
8 |
|
9 |
+
# Verify Tesseract installation by checking version and path
|
10 |
+
RUN which tesseract && tesseract --version
|
11 |
+
|
12 |
+
# Set the Tesseract path environment variable, just in case
|
13 |
+
ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/tessdata/
|
14 |
+
|
15 |
# Copy requirements.txt and install Python dependencies
|
16 |
COPY requirements.txt .
|
17 |
RUN pip install -r requirements.txt
|