Skip to content
Snippets Groups Projects
Dockerfile 581 B
Newer Older
ynerant's avatar
ynerant committed
FROM python:3-buster

ENV PYTHONUNBUFFERED 1

RUN mkdir /code
WORKDIR /code

RUN apt update && \
    apt install -y gettext nginx uwsgi uwsgi-plugin-python3 && \
    rm -rf /var/lib/apt/lists/*

ynerant's avatar
ynerant committed
# Install LaTeX requirements
RUN apt update && \
    apt install -y texlive-latex-extra texlive-fonts-extra texlive-lang-french && \
ynerant's avatar
ynerant committed
    rm -rf /var/lib/apt/lists/*

ynerant's avatar
ynerant committed
COPY . /code/

# Comment what is not needed
RUN pip install -r requirements/base.txt
RUN pip install -r requirements/cas.txt
RUN pip install -r requirements/production.txt
ynerant's avatar
ynerant committed

ENTRYPOINT ["/code/entrypoint.sh"]
EXPOSE 8000