1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-04 03:49:18 +02:00
dockerfiles/tesseract/Dockerfile

33 lines
978 B
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
2015-07-16 13:50:06 +02:00
MAINTAINER kev <noreply@datageek.info>
2015-07-16 14:02:40 +02:00
RUN apt-get update \
&& apt-get install -y autoconf \
build-essential \
git \
2015-07-16 14:06:17 +02:00
liblept4 \
libleptonica-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 15:39:01 +02:00
&& git clone https://github.com/tesseract-ocr/tessdata.git \
2015-07-16 16:24:25 +02:00
&& mv -v tessdata/* tesseract/tessdata/ \
2015-07-16 13:50:06 +02:00
&& cd tesseract \
&& ./autogen.sh \
&& ./configure \
2015-07-16 16:24:25 +02:00
&& make install install-langs \
2015-07-16 13:50:06 +02:00
&& cd .. \
2015-07-16 15:39:01 +02:00
&& rm -rf tesseract tessdata /var/cache/apk/* \
2015-07-16 14:02:40 +02:00
&& apt-get purge --auto-remove -y autoconf \
build-essential \
git \
2015-07-16 14:06:17 +02:00
libleptonica-dev \
2015-07-16 14:02:40 +02:00
libtool
2015-07-16 13:50:06 +02:00
ENTRYPOINT ["tesseract"]
CMD ["-h"]