1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/tesseract/Dockerfile

46 lines
1.4 KiB
Docker
Raw Normal View History

2015-07-16 13:50:06 +02:00
#
# Dockerfile for tesseract
#
2015-07-16 14:02:40 +02:00
FROM debian:jessie
2016-05-01 03:06:20 +02:00
MAINTAINER kev <noreply@easypi.info>
2015-07-16 13:50:06 +02:00
2016-05-17 04:42:00 +02:00
RUN set -xe \
&& apt-get update \
2015-07-16 14:02:40 +02:00
&& apt-get install -y autoconf \
build-essential \
git \
2016-07-08 15:01:29 +02:00
libcairo2 \
libcairo2-dev \
libgomp1 \
libicu52 \
libicu-dev \
2015-07-16 14:06:17 +02:00
liblept4 \
libleptonica-dev \
2016-07-08 15:01:29 +02:00
libpango1.0-0 \
libpango1.0-dev \
2015-07-16 14:02:40 +02:00
libtool \
2015-07-16 13:50:06 +02:00
&& git clone https://github.com/tesseract-ocr/tesseract.git \
2015-07-16 16:44:23 +02:00
&& cd tesseract \
&& ./autogen.sh \
&& ./configure \
&& make install \
&& cd .. \
2015-07-16 15:39:01 +02:00
&& git clone https://github.com/tesseract-ocr/tessdata.git \
2015-07-16 16:44:23 +02:00
&& cd tessdata \
2015-07-16 17:01:57 +02:00
&& mv * /usr/local/share/tessdata/ \
2015-07-16 16:44:23 +02:00
&& cd .. \
2015-07-16 14:02:40 +02:00
&& apt-get purge --auto-remove -y autoconf \
build-essential \
git \
2016-07-08 15:01:29 +02:00
libcairo2-dev \
libicu-dev \
2015-07-16 14:06:17 +02:00
libleptonica-dev \
2016-07-08 15:01:29 +02:00
libpango1.0-dev \
2015-07-16 16:44:23 +02:00
libtool \
&& rm -rf tesseract tessdata /var/cache/apk/*
2015-07-16 13:50:06 +02:00
ENTRYPOINT ["tesseract"]
CMD ["-h"]