From 0dc44980cbe3c2f3b2102bc0e5dff32e4cb3e9f9 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 16 Jul 2015 20:02:40 +0800 Subject: [PATCH] update --- tesseract/Dockerfile | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/tesseract/Dockerfile b/tesseract/Dockerfile index 5075f9d..03ce924 100644 --- a/tesseract/Dockerfile +++ b/tesseract/Dockerfile @@ -2,30 +2,28 @@ # Dockerfile for tesseract # -FROM alpine +FROM debian:jessie MAINTAINER kev -RUN apk add -U autoconf \ - automake \ - build-base \ - git \ - libtool \ +RUN apt-get update \ + && apt-get install -y autoconf \ + build-essential \ + git \ + leptonica \ + leptonica-dev \ + 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 + && apt-get purge --auto-remove -y autoconf \ + build-essential \ + git \ + leptonica-dev \ + libtool ENTRYPOINT ["tesseract"] CMD ["-h"]