fix(docker): 让 /app 对运行用户可读(宿主机文件为 0700 时容器启动失败)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user