fix: uncomment chown for nginx_configs_host and correct volume path to ./config
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:29:54 +03:00
parent c5963d1d30
commit 9d31429e14
2 changed files with 5 additions and 9 deletions

View File

@@ -60,14 +60,10 @@ COPY --chown=app:app . .
# Создаём директорию для конфигов nginx и даём права пользователю app
# Это выполняется ещё от root, поэтому проблем с permissions не будет.
RUN mkdir -p /nginx_configs_host/nginx
# ...и даём права пользователю app
# RUN chown -R app:app /nginx_configs_host
RUN mkdir -p /nginx_configs_host/nginx && chown -R app:app /nginx_configs_host
# Создаём директорию для собранной статики
RUN mkdir -p /home/app/web/staticfiles
# ...и даём права пользователю app
RUN chown -R app:app /home/app/web/staticfiles
# Создаём директорию для собранной статики и даём права пользователю app
RUN mkdir -p /home/app/web/staticfiles && chown -R app:app /home/app/web/staticfiles
# Переключаемся на пользователя без прав root
USER app