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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -7
Dockerfile CHANGED
@@ -3,13 +3,12 @@ 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-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
 
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
+ tesseract-ocr \
9
+ tesseract-ocr-eng \
10
+ tesseract-ocr-chi-sim \
11
+ tesseract-ocr-msa \
 
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  # Install Tesseract and its language data files