kai-sheng commited on
Commit
d8820e5
·
verified ·
1 Parent(s): 52bfd4c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -3,6 +3,11 @@ FROM python:3.9
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
 
3
  # Set environment variable for Tesseract data directory
4
  ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/tessdata/
5
 
6
+ # Install system dependencies
7
+ RUN apt-get update && apt-get install -y \
8
+ libleptonica-dev \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
  # Install Tesseract and its language data files
12
  RUN apt-get update && apt-get install -y tesseract-ocr tesseract-ocr-chi-sim
13
  RUN apt-get update && apt-get install -y tesseract-ocr tesseract-ocr-msa