1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-25 16:28:40 +00:00
dockerfiles/tesseract/Dockerfile
2015-07-16 22:04:53 +08:00

33 lines
976 B
Docker

#
# Dockerfile for tesseract
#
FROM debian:jessie
MAINTAINER kev <noreply@datageek.info>
RUN apt-get update \
&& apt-get install -y autoconf \
build-essential \
git \
liblept4 \
libleptonica-dev \
libtool \
&& git clone https://github.com/tesseract-ocr/tesseract.git \
&& git clone https://github.com/tesseract-ocr/tessdata.git \
&& mv -v tessdata/*.traineddata tesseract/tessdata/ \
&& cd tesseract \
&& ./autogen.sh \
&& ./configure \
&& make install \
&& cd .. \
&& rm -rf tesseract tessdata /var/cache/apk/* \
&& apt-get purge --auto-remove -y autoconf \
build-essential \
git \
libleptonica-dev \
libtool
ENTRYPOINT ["tesseract"]
CMD ["-h"]