-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
40 lines (32 loc) · 864 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
FROM python:3.8
# setup
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y \
libgl1-mesa-glx \
tesseract-ocr \
libtesseract-dev \
tesseract-ocr-jpn \
tesseract-ocr-jpn-vert \
tesseract-ocr-script-jpan \
tesseract-ocr-script-jpan-vert \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN apt-get -y install locales && \
localedef -f UTF-8 -i ja_JP ja_JP.UTF-8
ENV LANG ja_JP.UTF-8
ENV LANGUAGE ja_JP:ja
ENV LC_ALL ja_JP.UTF-8
RUN apt-get install -y vim less git ghostscript
WORKDIR /covid19
COPY *.py /covid19/
COPY *.txt /covid19/
COPY data /covid19/
# RUN pip3 install --upgrade pip
RUN pip3 install -r requirements.txt
# execute
RUN mkdir /covid19/data
COPY docker_exec.sh /covid19/
RUN ["chmod", "+x", "/covid19/docker_exec.sh"]
ENTRYPOINT ["/covid19/docker_exec.sh"]