mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2025-06-21 19:58:25 +02:00
No longer use insecure mode, setup external nginx server (better performances)
This commit is contained in:
12
Dockerfile
12
Dockerfile
@ -7,12 +7,20 @@ WORKDIR /code
|
||||
|
||||
# Install LaTeX requirements
|
||||
RUN apt update && \
|
||||
apt install -y gettext texlive-latex-extra texlive-fonts-extra texlive-lang-french && \
|
||||
apt install -y gettext texlive-latex-extra texlive-fonts-extra texlive-lang-french nginx && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY . /code/
|
||||
|
||||
# Configure nginx
|
||||
RUN ln -s nginx_tfjm.conf /etc/nginx/sites-available/tfjm.conf
|
||||
RUN rm /var/log/nginx/*.log
|
||||
RUN ln -s /dev/stdout /var/log/nginx/access.log
|
||||
RUN ln -s /dev/stderr /var/log/nginx/error.log
|
||||
RUN rm /etc/nginx/sites-enabled/default
|
||||
RUN ln -sf /code/nginx_tfjm.conf /etc/nginx/sites-enabled/tfjm.conf
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
ENTRYPOINT ["/code/entrypoint.sh"]
|
||||
EXPOSE 8000
|
||||
EXPOSE 80
|
||||
|
Reference in New Issue
Block a user