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