From d210b2a2217e64c5f0811145e4e7abe3c5ba1842 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 12 Jan 2022 00:48:53 +0100 Subject: [PATCH] /run/nginx now exists by default, but not /etc/nginx/conf.d Signed-off-by: Yohann D'ANELLO --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7d39218..6d5d630 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.9-alpine +FROM python:3.10-alpine ENV PYTHONUNBUFFERED 1 ENV DJANGO_ALLOW_ASYNC_UNSAFE 1 @@ -23,10 +23,8 @@ RUN python manage.py collectstatic --noinput && \ python manage.py compilemessages # 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 +RUN ln -sf /code/nginx_tfjm.conf /etc/nginx/http.d/tfjm.conf && rm /etc/nginx/http.d/default.conf RUN crontab /code/tfjm.cron