fix: create media/errors directory with proper permissions in Dockerfile
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 33s

This commit is contained in:
2026-03-20 00:43:42 +03:00
parent 9d31429e14
commit d459eedf41

View File

@@ -65,6 +65,9 @@ RUN mkdir -p /nginx_configs_host/nginx && chown -R app:app /nginx_configs_host
# Создаём директорию для собранной статики и даём права пользователю app
RUN mkdir -p /home/app/web/staticfiles && chown -R app:app /home/app/web/staticfiles
# Создаём директорию для ошибок (404, 500) и даём права пользователю app
RUN mkdir -p /app/public/media/errors && chown -R app:app /app/public/media
# Переключаемся на пользователя без прав root
USER app