forked from ioi-2019/ioi-translation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (22 loc) · 1.09 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
FROM ubuntu:xenial
RUN echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
python3 python3-pip python3-setuptools \
libfontconfig wkhtmltopdf xvfb libpq-dev ttf-mscorefonts-installer fonts-takao-pgothic && \
pip3 install -U pip
COPY binaries/cpdf/cpdf /usr/local/bin/
RUN chmod +x /usr/local/bin/cpdf
COPY trans/static/fonts/IRANSans/ttf/* /usr/local/share/fonts/
COPY trans/static/fonts/SourceSansPro/ttf/* /usr/local/share/fonts/
COPY trans/static/fonts/Korean/* /usr/local/share/fonts/
COPY trans/static/fonts/Thai/* /usr/local/share/fonts/
COPY trans/static/fonts/Taiwan/* /usr/local/share/fonts/
COPY trans/static/fonts/Sinhala/* /usr/local/share/fonts/
COPY requirements.txt /root/requirements.txt
RUN pip3 install -r /root/requirements.txt
COPY docker-entrypoint.sh /root/docker-entrypoint.sh
RUN chmod +x /root/docker-entrypoint.sh
COPY . /usr/src/app
WORKDIR /usr/src/app
ENTRYPOINT ["/root/docker-entrypoint.sh"]