fix(docker): 让 /app 对运行用户可读(宿主机文件为 0700 时容器启动失败)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jocay
2026-10-10 22:15:29 +08:00
parent a4f328e245
commit dfb0defc88
+2 -1
View File
@@ -28,7 +28,8 @@ COPY config.json ./
COPY server ./server
COPY --from=build /app/dist ./dist
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
# 宿主机文件可能是 0700(如飞牛 NAS),服务以 PUID 运行,需要让 /app 对所有用户可读
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh && chmod -R a+rX /app
EXPOSE 8066
HEALTHCHECK --interval=60s --timeout=5s --start-period=10s CMD wget -qO- "http://127.0.0.1:${PORT}/api/health" >/dev/null || exit 1