1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 06:22:22 +00:00

/run/nginx now exists by default, but not /etc/nginx/conf.d

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
Yohann D'ANELLO 2022-01-12 00:48:53 +01:00
parent e9958faace
commit d210b2a221
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85

View File

@ -1,4 +1,4 @@
FROM python:3.9-alpine FROM python:3.10-alpine
ENV PYTHONUNBUFFERED 1 ENV PYTHONUNBUFFERED 1
ENV DJANGO_ALLOW_ASYNC_UNSAFE 1 ENV DJANGO_ALLOW_ASYNC_UNSAFE 1
@ -23,10 +23,8 @@ RUN python manage.py collectstatic --noinput && \
python manage.py compilemessages python manage.py compilemessages
# Configure nginx # 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 /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 ln -sf /code/nginx_tfjm.conf /etc/nginx/http.d/tfjm.conf && rm /etc/nginx/http.d/default.conf
RUN rm /etc/nginx/conf.d/default.conf
RUN crontab /code/tfjm.cron RUN crontab /code/tfjm.cron