-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
23 lines (19 loc) · 827 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
# docker build -t ocromore .
# docker run -it -v `PWD`:/home/developer/coding/ocromore ocromore
FROM ubuntu:18.04
ENV PYTHONIOENCODING utf8
ENV DEBIAN_FRONTEND=noninteractive
COPY requirements.txt /tmp/
RUN apt-get update && apt-get install --no-install-recommends -y \
python3 python3-dev python3-pip python3-setuptools python3-tk python3-numpy \
gcc git openssh-client libutf8proc-dev build-essential &&\
pip3 install --upgrade wheel &&\
pip3 install -r ./tmp/requirements.txt &&\
mkdir -p /home/developer/coding/ocromore/ && \
cd /home/developer/coding/ &&\
git clone https:/eddieantonio/isri-ocr-evaluation-tools && \
cd isri-ocr-evaluation-tools &&\
make && \
apt-get clean
ENV PATH=$PATH:/home/developer/coding/isri-ocr-evaluation-tools/bin/
WORKDIR /home/developer/coding/ocromore/