Update Dockerfile

#8
by juliajo - opened
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -3,8 +3,6 @@ FROM python:3.9-slim
3
  WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y \
6
- tesseract-ocr \
7
- tesseract-ocr-nor \
8
  build-essential \
9
  curl \
10
  software-properties-common \
@@ -13,6 +11,12 @@ RUN apt-get update && apt-get install -y \
13
 
14
  RUN apt-get update && apt-get install -y libgl1
15
 
 
 
 
 
 
 
16
  ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/
17
 
18
 
 
3
  WORKDIR /app
4
 
5
  RUN apt-get update && apt-get install -y \
 
 
6
  build-essential \
7
  curl \
8
  software-properties-common \
 
11
 
12
  RUN apt-get update && apt-get install -y libgl1
13
 
14
+ RUN apt-get update && apt-get install -y tesseract-ocr
15
+
16
+ RUN mkdir -p /usr/share/tesseract-ocr/4.00/tessdata && \
17
+ curl -L -o /usr/share/tesseract-ocr/4.00/tessdata/nor.traineddata \
18
+ https://github.com/tesseract-ocr/tessdata/raw/main/nor.traineddata
19
+
20
  ENV TESSDATA_PREFIX=/usr/share/tesseract-ocr/4.00/
21
 
22