forked from ocropus/hocr-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (40 loc) · 1020 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#
# Build: docker build -t hocr-tools .
# Start: docker run -it --rm hocr-tools
#
FROM ubuntu:18.04
MAINTAINER "Iordanis Kostelidis <[email protected]>"
ENV DEBIAN_FRONTEND="noninteractive"
RUN apt-get update \
&& apt-get install -y \
apt-utils \
&& apt-get install -y \
locales \
locales-all \
&& rm -rf /var/lib/apt/lists/*
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
RUN apt-get update \
&& apt-get install -y \
git \
libjpeg8-dev \
nano \
python3 \
python3-tk \
python3-pip \
pdfgrep \
wget \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /usr/bin/python \
&& ln -s /usr/bin/python3 /usr/bin/python
RUN apt-get update \
&& apt-get install -y \
libxml2-dev libxslt-dev cython \
&& rm -rf /var/lib/apt/lists/*
ENV PYTHONIOENCODING utf8
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . /usr/src/app
RUN python3 setup.py install
CMD ["bash"]