kai-sheng commited on
Commit
2a71a10
·
verified ·
1 Parent(s): d8820e5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -3,14 +3,18 @@ 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 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
14
 
15
  # Set environment variable for Tesseract executable path
16
  ENV PATH="${PATH}:/usr/bin/"
 
3
  # Set environment variable for Tesseract data directory
4
  ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/tessdata/
5
 
6
+ # Install tesseract-ocr
7
+ RUN apt-get update && apt-get install -y --no-install-recommends \
8
+ software-properties-common \
9
+ && add-apt-repository -y ppa:alex-p/tesseract-ocr \
10
+ && apt-get update \
11
+ && apt-get install -y --no-install-recommends \
12
+ tesseract-ocr-all \
13
  && rm -rf /var/lib/apt/lists/*
14
 
15
  # Install Tesseract and its language data files
16
+ # RUN apt-get update && apt-get install -y tesseract-ocr tesseract-ocr-chi-sim
17
+ # RUN apt-get update && apt-get install -y tesseract-ocr tesseract-ocr-msa
18
 
19
  # Set environment variable for Tesseract executable path
20
  ENV PATH="${PATH}:/usr/bin/"