mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-05-19 22:23:22 +02:00
add tesseract
This commit is contained in:
parent
944ec9b406
commit
a2abb40096
32
tesseract/Dockerfile
Normal file
32
tesseract/Dockerfile
Normal file
@ -0,0 +1,32 @@
|
||||
#
|
||||
# Dockerfile for tesseract
|
||||
#
|
||||
|
||||
FROM alpine
|
||||
MAINTAINER kev <noreply@datageek.info>
|
||||
|
||||
RUN apk add -U autoconf \
|
||||
automake \
|
||||
build-base \
|
||||
git \
|
||||
libtool \
|
||||
&& git clone https://github.com/tesseract-ocr/tesseract.git \
|
||||
&& cd tesseract \
|
||||
&& wget http://nl.alpinelinux.org/alpine/edge/testing/x86_64/leptonica-1.72-r0.apk \
|
||||
&& wget http://nl.alpinelinux.org/alpine/edge/testing/x86_64/leptonica-dev-1.72-r0.apk \
|
||||
&& apk add leptonica-1.72-r0.apk leptonica-dev-1.72-r0.apk \
|
||||
&& ./autogen.sh \
|
||||
&& ./configure \
|
||||
&& make install \
|
||||
&& cd .. \
|
||||
&& rm -rf tesseract /var/cache/apk/* \
|
||||
&& apk del autoconf \
|
||||
automake \
|
||||
build-base \
|
||||
git \
|
||||
leptonica-dev \
|
||||
libtool
|
||||
|
||||
ENTRYPOINT ["tesseract"]
|
||||
CMD ["-h"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user