Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
46a7f69
1
Parent(s):
2deee95
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -1,11 +1,14 @@
|
|
1 |
# Use an official Python image from Docker Hub
|
2 |
FROM python:3.10-slim
|
3 |
|
4 |
-
#
|
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 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
|