This commit is contained in:
2025-10-21 13:58:11 +08:00
parent a72afc173e
commit ba8753ee6c

View File

@@ -48,6 +48,9 @@ RUN addgroup -g 1001 -S appgroup && \
# 设置文件权限 # 设置文件权限
RUN chown -R harbor:appgroup /app RUN chown -R harbor:appgroup /app
# 确保数据库文件目录存在且有正确权限
RUN mkdir -p /app && chown -R harbor:appgroup /app
# 切换到非 root 用户 # 切换到非 root 用户
USER harbor USER harbor