mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-12-25 02:04:06 +02:00
36 lines
1.0 KiB
Docker
36 lines
1.0 KiB
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 \
|
|
libgomp1 \
|
|
libtool \
|
|
&& git clone https://github.com/tesseract-ocr/tesseract.git \
|
|
&& cd tesseract \
|
|
&& ./autogen.sh \
|
|
&& ./configure \
|
|
&& make install \
|
|
&& cd .. \
|
|
&& git clone https://github.com/tesseract-ocr/tessdata.git \
|
|
&& cd tessdata \
|
|
&& mv * /usr/local/share/tessdata/ \
|
|
&& cd .. \
|
|
&& apt-get purge --auto-remove -y autoconf \
|
|
build-essential \
|
|
git \
|
|
libleptonica-dev \
|
|
libtool \
|
|
&& rm -rf tesseract tessdata /var/cache/apk/*
|
|
|
|
ENTRYPOINT ["tesseract"]
|
|
CMD ["-h"]
|
|
|