Update Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
CHANGED
|
@@ -1,5 +1,15 @@
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
WORKDIR /code
|
| 4 |
|
| 5 |
COPY ./requirements.txt /code/requirements.txt
|
|
|
|
| 1 |
FROM python:3.9
|
| 2 |
|
| 3 |
+
# Set environment variable for Tesseract data directory
|
| 4 |
+
ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/tessdata/
|
| 5 |
+
|
| 6 |
+
# Install Tesseract and its language data files
|
| 7 |
+
RUN apt-get update && apt-get install -y tesseract-ocr tesseract-ocr-chi-sim
|
| 8 |
+
RUN apt-get update && apt-get install -y tesseract-ocr tesseract-ocr-msa
|
| 9 |
+
|
| 10 |
+
# Set environment variable for Tesseract executable path
|
| 11 |
+
ENV PATH="${PATH}:/usr/bin/"
|
| 12 |
+
|
| 13 |
WORKDIR /code
|
| 14 |
|
| 15 |
COPY ./requirements.txt /code/requirements.txt
|