fix(deploy): eliminate duplicate container log writes

This commit is contained in:
2026-09-02 15:14:24 +08:00
parent 8da57487c0
commit e48e8dca42
19 changed files with 78 additions and 144 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ RUN addgroup -S app \
WORKDIR /app
# 预建镜像内运行时数据和日志目录并归属 app 用户;宿主机 bind mount 的属主需在部署前单独设置为 UID 10001。
RUN mkdir -p /data/files /app/logs && chown -R app:app /data /app/logs
RUN mkdir -p /data/files && chown -R app:app /data
# 依赖层稳定、业务代码层高频变化;Registry 只需传输实际变化的 Layer。
COPY --from=extractor --chown=app:app /workspace/dependencies/ ./