From d54dd11253a3826394cf7ccdfcf42148ffc1dc81 Mon Sep 17 00:00:00 2001 From: kev Date: Fri, 8 Jul 2016 21:01:29 +0800 Subject: [PATCH] fix tesseract --- README.md | 1 + tesseract/Dockerfile | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f82b6bb..b0c102d 100644 --- a/README.md +++ b/README.md @@ -100,6 +100,7 @@ A collection of delicious docker recipes. - [x] red5-arm :construction: - [x] rtmp-client-arm :+1: - [x] rtmp-server +- [x] tesseract - [x] youtube-dl - [x] youtube-worker :beetle: diff --git a/tesseract/Dockerfile b/tesseract/Dockerfile index d2507f1..e3c5411 100644 --- a/tesseract/Dockerfile +++ b/tesseract/Dockerfile @@ -10,9 +10,15 @@ RUN set -xe \ && apt-get install -y autoconf \ build-essential \ git \ + libcairo2 \ + libcairo2-dev \ + libgomp1 \ + libicu52 \ + libicu-dev \ liblept4 \ libleptonica-dev \ - libgomp1 \ + libpango1.0-0 \ + libpango1.0-dev \ libtool \ && git clone https://github.com/tesseract-ocr/tesseract.git \ && cd tesseract \ @@ -27,7 +33,10 @@ RUN set -xe \ && apt-get purge --auto-remove -y autoconf \ build-essential \ git \ + libcairo2-dev \ + libicu-dev \ libleptonica-dev \ + libpango1.0-dev \ libtool \ && rm -rf tesseract tessdata /var/cache/apk/*