Skip to content
Snippets Groups Projects
Dockerfile 1015 B
Newer Older
FROM debian:buster-backports
ynerant's avatar
ynerant committed

# Force the stdout and stderr streams to be unbuffered
ynerant's avatar
ynerant committed
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 \
me5na7qbjqbrp's avatar
me5na7qbjqbrp committed
    python3-babel python3-lockfile python3-pip python3-phonenumbers python3-memcache ipython3 \
    python3-bs4 python3-setuptools \
me5na7qbjqbrp's avatar
me5na7qbjqbrp committed
    uwsgi uwsgi-plugin-python3 \
me5na7qbjqbrp's avatar
me5na7qbjqbrp committed
    texlive-xetex gettext libjs-bootstrap4 fonts-font-awesome && \
    rm -rf /var/lib/apt/lists/*
ynerant's avatar
ynerant committed

# Instal PyPI requirements
COPY requirements.txt /var/www/note_kfet/
RUN pip3 install -r /var/www/note_kfet/requirements.txt --no-cache-dir
ynerant's avatar
ynerant committed

# Copy code
WORKDIR /var/www/note_kfet
COPY . /var/www/note_kfet/
ynerant's avatar
ynerant committed

me5na7qbjqbrp's avatar
me5na7qbjqbrp committed
EXPOSE 8080
ENTRYPOINT ["/var/www/note_kfet/entrypoint.sh"]