From 5cf6e66001ce0907b0fa8d1d27d5f1dab73e6637 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 16 Jul 2015 22:44:23 +0800 Subject: [PATCH] update --- tesseract/Dockerfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/tesseract/Dockerfile b/tesseract/Dockerfile index 03afc24..375f90c 100644 --- a/tesseract/Dockerfile +++ b/tesseract/Dockerfile @@ -13,19 +13,21 @@ RUN apt-get update \ libleptonica-dev \ libtool \ && git clone https://github.com/tesseract-ocr/tesseract.git \ + && cd tesseract \ + && ./autogen.sh \ + && ./configure \ + && make install \ + && cd .. \ && git clone https://github.com/tesseract-ocr/tessdata.git \ - && mv -v tessdata/* tesseract/tessdata/ \ - && cd tesseract \ - && ./autogen.sh \ - && ./configure \ - && make install install-langs \ - && cd .. \ - && rm -rf tesseract tessdata /var/cache/apk/* \ + && cd tessdata \ + && mv * /usr/local/lib/tessdata/ \ + && cd .. \ && apt-get purge --auto-remove -y autoconf \ build-essential \ git \ libleptonica-dev \ - libtool + libtool \ + && rm -rf tesseract tessdata /var/cache/apk/* ENTRYPOINT ["tesseract"] CMD ["-h"]