1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-21 06:52:20 +00:00
nk20/Dockerfile

28 lines
1015 B
Docker
Raw Normal View History

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