fix(deploy): 修复容器非 root 用户写入上传目录与日志目录的权限问题

- Dockerfile 在 USER app 前预建 /data/files 与 /app/logs 并 chown 给 app(uid 10001),
  避免 Docker 以 root:root 创建挂载点导致非 root 容器无法写入
- nacos cn 公共配置补充 logging.file.path,使 compose 注入的 LOG_PATH 真正生效
  (Spring Boot 只识别 logging.file.path,不识别裸的 LOG_PATH 环境变量)
This commit is contained in:
2026-07-31 17:31:57 +08:00
parent 9ff5373964
commit 8287bc1da2
2 changed files with 5 additions and 2 deletions
+3
View File
@@ -34,6 +34,9 @@ spring:
client.config.default:
connect-timeout: 3000
read-timeout: 5000
logging:
file:
path: ${LOG_PATH:/app/logs}
server:
shutdown: graceful
management: