forked from OCR-D/ocrd_tesserocr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (33 loc) · 786 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
28
29
30
31
32
33
34
35
FROM ocrd/core
MAINTAINER OCR-D
ENV DEBIAN_FRONTEND noninteractive
ENV PYTHONIOENCODING utf8
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
WORKDIR /build-ocrd
COPY setup.py .
COPY requirements.txt .
COPY README.rst .
COPY LICENSE .
RUN apt-get update && \
apt-get -y install --no-install-recommends \
ca-certificates \
sudo \
make \
git
COPY Makefile .
RUN make deps-ubuntu
RUN sudo make patch-header
RUN git clone https://github.com/sirfz/tesserocr && \
cd tesserocr && \
python3 setup.py install && \
cd .. && \
mkdir data
RUN git clone https://github.com/OCR-D/core && \
cd core && \
python3 setup.py install && \
cd ..
COPY ocrd_tesserocr ./ocrd_tesserocr
RUN pip3 install --upgrade pip
RUN make deps-pip install
ENTRYPOINT ["/bin/sh", "-c"]