2020-09-01 12:09:02 +02:00
|
|
|
FROM debian:buster-backports
|
2020-02-03 11:50:42 +01:00
|
|
|
|
2020-09-01 11:23:56 +02:00
|
|
|
# Force the stdout and stderr streams to be unbuffered
|
2020-02-03 11:50:42 +01:00
|
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
|
2020-09-01 12:09:02 +02:00
|
|
|
# Install Django, external apps, LaTeX and dependencies
|
2020-09-01 11:23:56 +02:00
|
|
|
RUN apt-get update && \
|
2020-09-01 21:13:45 +02:00
|
|
|
apt-get install --no-install-recommends -t buster-backports -y \
|
|
|
|
python3-django python3-django-crispy-forms \
|
2020-09-01 12:09:02 +02:00
|
|
|
python3-django-extensions python3-django-filters python3-django-polymorphic \
|
2020-09-21 10:31:42 +02:00
|
|
|
python3-djangorestframework python3-django-oauth-toolkit python3-psycopg2 python3-pil \
|
2020-09-21 15:13:43 +02:00
|
|
|
python3-babel python3-lockfile python3-pip python3-phonenumbers python3-memcache ipython3 \
|
2020-09-01 21:13:45 +02:00
|
|
|
python3-bs4 python3-setuptools \
|
2020-09-01 13:52:28 +02:00
|
|
|
uwsgi uwsgi-plugin-python3 \
|
2020-09-06 15:30:12 +02:00
|
|
|
texlive-xetex gettext libjs-bootstrap4 fonts-font-awesome && \
|
2020-09-01 11:23:56 +02:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
2020-02-03 11:50:42 +01:00
|
|
|
|
2020-09-01 11:23:56 +02:00
|
|
|
# Instal PyPI requirements
|
2020-09-01 14:03:06 +02:00
|
|
|
COPY requirements.txt /var/www/note_kfet/
|
|
|
|
RUN pip3 install -r /var/www/note_kfet/requirements.txt --no-cache-dir
|
2020-03-21 09:22:38 +01:00
|
|
|
|
2020-09-01 11:23:56 +02:00
|
|
|
# Copy code
|
2020-09-01 14:03:06 +02:00
|
|
|
WORKDIR /var/www/note_kfet
|
|
|
|
COPY . /var/www/note_kfet/
|
2020-03-10 23:37:54 +01:00
|
|
|
|
2020-09-01 13:52:28 +02:00
|
|
|
EXPOSE 8080
|
2020-09-01 14:03:06 +02:00
|
|
|
ENTRYPOINT ["/var/www/note_kfet/entrypoint.sh"]
|