2015-07-16 19:50:06 +08:00
|
|
|
#
|
|
|
|
|
# Dockerfile for tesseract
|
|
|
|
|
#
|
|
|
|
|
|
2015-07-16 20:02:40 +08:00
|
|
|
FROM debian:jessie
|
2015-07-16 19:50:06 +08:00
|
|
|
MAINTAINER kev <noreply@datageek.info>
|
|
|
|
|
|
2015-07-16 20:02:40 +08:00
|
|
|
RUN apt-get update \
|
|
|
|
|
&& apt-get install -y autoconf \
|
|
|
|
|
build-essential \
|
|
|
|
|
git \
|
|
|
|
|
leptonica \
|
|
|
|
|
leptonica-dev \
|
|
|
|
|
libtool \
|
2015-07-16 19:50:06 +08:00
|
|
|
&& git clone https://github.com/tesseract-ocr/tesseract.git \
|
|
|
|
|
&& cd tesseract \
|
|
|
|
|
&& ./autogen.sh \
|
|
|
|
|
&& ./configure \
|
|
|
|
|
&& make install \
|
|
|
|
|
&& cd .. \
|
|
|
|
|
&& rm -rf tesseract /var/cache/apk/* \
|
2015-07-16 20:02:40 +08:00
|
|
|
&& apt-get purge --auto-remove -y autoconf \
|
|
|
|
|
build-essential \
|
|
|
|
|
git \
|
|
|
|
|
leptonica-dev \
|
|
|
|
|
libtool
|
2015-07-16 19:50:06 +08:00
|
|
|
|
|
|
|
|
ENTRYPOINT ["tesseract"]
|
|
|
|
|
CMD ["-h"]
|
|
|
|
|
|