1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-25 02:04:06 +02:00
This commit is contained in:
kev 2015-07-16 22:44:23 +08:00
parent 4680e2e0f3
commit 5cf6e66001

View File

@ -13,19 +13,21 @@ 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 -v tessdata/* tesseract/tessdata/ \
&& cd tesseract \
&& ./autogen.sh \
&& ./configure \
&& make install install-langs \
&& make install \
&& cd .. \
&& git clone https://github.com/tesseract-ocr/tessdata.git \
&& cd tessdata \
&& mv * /usr/local/lib/tessdata/ \
&& cd .. \
&& rm -rf tesseract tessdata /var/cache/apk/* \
&& 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"]