1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-11-26 11:27:09 +00:00
plateforme-tfjm2/Dockerfile

30 lines
760 B
Docker
Raw Normal View History

FROM python:3-alpine
2020-04-29 00:24:12 +00:00
ENV PYTHONUNBUFFERED 1
# Install LaTeX requirements
RUN apk add --no-cache gettext texlive nginx gcc libc-dev libffi-dev postgresql-dev mariadb-connector-c-dev
RUN apk add --no-cache bash
2020-04-29 00:24:12 +00:00
RUN mkdir /code
WORKDIR /code
COPY requirements.txt /code/requirements.txt
RUN pip install -r requirements.txt --no-cache-dir
2020-04-29 00:24:12 +00:00
COPY . /code/
# Configure nginx
RUN mkdir /run/nginx
RUN ln -sf /dev/stdout /var/log/nginx/access.log && ln -sf /dev/stderr /var/log/nginx/error.log
RUN ln -sf /code/nginx_tfjm.conf /etc/nginx/conf.d/tfjm.conf
RUN rm /etc/nginx/conf.d/default.conf
# With a bashrc, the shell is better
RUN ln -s /code/.bashrc /root/.bashrc
2020-04-29 00:24:12 +00:00
ENTRYPOINT ["/code/entrypoint.sh"]
EXPOSE 80
CMD ["./manage.py", "shell_plus", "--ptpython"]