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
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 33s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user