mirror of
https://gitlab.crans.org/bde/nk20
synced 2024-12-25 00:42:22 +00:00
466cbd9878
Font Awesome 4 adds 106kB of dependencies on each page and require to query multiple assets. It also sometimes causes icons to appear after page loading. Font Awesome 4 is deprecated and replaced by version 5 which is not packaged in every GNU/Linux distributions. This commit replaces icons with inline SVG which does not require external assets, does not require an additionnal dependency and is widely supported by modern browsers. It makes the page loading faster and enables us to no longer require fonts-font-awesome Debian package.
28 lines
996 B
Docker
28 lines
996 B
Docker
FROM debian:buster-backports
|
|
|
|
# Force the stdout and stderr streams to be unbuffered
|
|
ENV PYTHONUNBUFFERED 1
|
|
|
|
# Install Django, external apps, LaTeX and dependencies
|
|
RUN apt-get update && \
|
|
apt-get install --no-install-recommends -t buster-backports -y \
|
|
python3-django python3-django-crispy-forms \
|
|
python3-django-extensions python3-django-filters python3-django-polymorphic \
|
|
python3-djangorestframework python3-django-oauth-toolkit python3-psycopg2 python3-pil \
|
|
python3-babel python3-lockfile python3-pip python3-phonenumbers python3-memcache ipython3 \
|
|
python3-bs4 python3-setuptools \
|
|
uwsgi uwsgi-plugin-python3 \
|
|
texlive-xetex gettext libjs-bootstrap4 && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Instal PyPI requirements
|
|
COPY requirements.txt /var/www/note_kfet/
|
|
RUN pip3 install -r /var/www/note_kfet/requirements.txt --no-cache-dir
|
|
|
|
# Copy code
|
|
WORKDIR /var/www/note_kfet
|
|
COPY . /var/www/note_kfet/
|
|
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/var/www/note_kfet/entrypoint.sh"]
|