-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathDockerfile
27 lines (18 loc) · 1003 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:14.04
RUN apt-get update
RUN apt-get -q -y install subversion emacs24-nox wget
RUN apt-get -q -y install liblept4 libleptonica-dev
RUN apt-get -q -y install autoconf automake libtool
RUN apt-get -q -y install libpng12-dev
RUN apt-get -q -y install libjpeg62-dev
RUN apt-get -q -y install libtiff4-dev
RUN apt-get -q -y install zlib1g-dev
RUN apt-get -q -y install libicu-dev
RUN apt-get -q -y install libpango1.0-dev
RUN apt-get -q -y install libcairo2-dev
RUN cd /opt && svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr-read-only
RUN cd /opt/tesseract-ocr-read-only && ./autogen.sh && ./configure && make && sudo make install && sudo ldconfig
RUN cd /opt/tesseract-ocr-read-only && make training && sudo make training-install
RUN cd /opt/tesseract-ocr-read-only && wget http://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.01.eng.tar.gz
RUN cd /opt/tesseract-ocr-read-only && tar xf tesseract-ocr-3.01.eng.tar.gz
RUN cd /opt/tesseract-ocr-read-only