Preserve the production network and normalize runtime image permissions
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-09-13 19:58:19 +09:00
parent 1b34e27dbb
commit 8094cbb8f7
2 changed files with 8 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ COPY --chown=lottery:lottery main.py alembic.ini ./
# Создаем необходимые директории
RUN mkdir -p /app/logs /app/data && \
chmod -R u=rwX,go=rX /app && \
chown -R lottery:lottery /app
# Переключаемся на непривилегированного пользователя