-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (34 loc) · 1.04 KB
/
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
FROM ubuntu:16.04
LABEL maintainer="Zied Guesmi <[email protected]>"
LABEL version="1.0"
COPY requirements.txt /image2text/requirements.txt
RUN apt-get update && apt-get install -y --no-install-recommends \
libtesseract-dev \
libsm6 \
python3 \
python3-pip \
python3-setuptools \
tesseract-ocr \
tesseract-ocr-ara \
tesseract-ocr-eng \
tesseract-ocr-fra \
tesseract-ocr-spa \
tesseract-ocr-deu \
tesseract-ocr-chi-sim \
tesseract-ocr-ita \
tesseract-ocr-jpn \
tesseract-ocr-por \
tesseract-ocr-rus \
tesseract-ocr-tur \
tesseract-ocr-kor \
&& \
pip3 install -r /image2text/requirements.txt --no-cache-dir && \
rm /image2text/requirements.txt && \
apt-get remove -y python3-pip && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir /iexec
COPY ./app /image2text
WORKDIR /image2text
ENTRYPOINT [ "/image2text/entrypoint" ]