-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
46 lines (41 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
FROM debian:stretch
# enable contrib (for ttf-mscorefonts-installer)
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
software-properties-common \
&& add-apt-repository contrib
# Fetch build dependencies
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
default-jre \
gettext \
hyphen-de \
jing \
latexmk \
libsaxonhe-java \
lmodern \
mysql-client \
python \
python-django \
python-docutils \
python-httplib2 \
python-libxml2 \
python-libxslt1 \
python-louis \
python-lxml \
python-mysqldb \
python-pypdf2 \
python-requests \
python-stdnum \
texlive-lang-german \
texlive-latex-extra \
texlive-latex-recommended \
texlive-xetex \
ttf-mscorefonts-installer \
ttf-tiresias \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Set PYTHONUNBUFFERED so output is displayed in the Docker log
ENV PYTHONUNBUFFERED=1
WORKDIR /usr/src/app
COPY . .
EXPOSE 8000
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]