1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-28 17:51:24 +00:00
dockerfiles/tesseract/Dockerfile

36 lines
1.0 KiB
Docker
Raw Normal View History

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