fix: add /app/database directory creation with app:app ownership in Dockerfile
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 34s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 34s
This commit is contained in:
@@ -72,6 +72,10 @@ RUN mkdir -p /home/app/web/staticfiles && chown -R app:app /home/app/web/staticf
|
||||
# Создаём директорию для ошибок (404, 500) и даём права пользователю app
|
||||
RUN mkdir -p /app/public/media/errors && chown -R app:app /app/public/media
|
||||
|
||||
# Создаём директорию для БД и даём права пользователю app
|
||||
# Это важно когда БД монтируется как том с хоста
|
||||
RUN mkdir -p /app/database && chown -R app:app /app/database
|
||||
|
||||
# Переключаемся на пользователя без прав root
|
||||
USER app
|
||||
|
||||
|
||||
Reference in New Issue
Block a user