From dfb0defc88722a2df9ca6cc8612c3a25ba86480e Mon Sep 17 00:00:00 2001 From: Jocay <1579649885@qq.com> Date: Sat, 10 Oct 2026 22:15:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(docker):=20=E8=AE=A9=20/app=20=E5=AF=B9?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E7=94=A8=E6=88=B7=E5=8F=AF=E8=AF=BB=EF=BC=88?= =?UTF-8?q?=E5=AE=BF=E4=B8=BB=E6=9C=BA=E6=96=87=E4=BB=B6=E4=B8=BA=200700?= =?UTF-8?q?=20=E6=97=B6=E5=AE=B9=E5=99=A8=E5=90=AF=E5=8A=A8=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d64da81..d53b455 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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