diff --git a/tesseract/Dockerfile b/tesseract/Dockerfile index 307c2ad..ab648e7 100644 --- a/tesseract/Dockerfile +++ b/tesseract/Dockerfile @@ -13,12 +13,14 @@ RUN apt-get update \ libleptonica-dev \ libtool \ && git clone https://github.com/tesseract-ocr/tesseract.git \ + && git clone https://github.com/tesseract-ocr/tessdata.git \ + && mv tessdata/*.traineddata tesseract/tessdata/ \ && cd tesseract \ && ./autogen.sh \ && ./configure \ && make install \ && cd .. \ - && rm -rf tesseract /var/cache/apk/* \ + && rm -rf tesseract tessdata /var/cache/apk/* \ && apt-get purge --auto-remove -y autoconf \ build-essential \ git \