diff --git a/apps/blogai/Dockerfile b/apps/blogai/Dockerfile index 45e5860..ed9dc95 100644 --- a/apps/blogai/Dockerfile +++ b/apps/blogai/Dockerfile @@ -61,6 +61,8 @@ RUN chmod +x /plugai/wrapper.sh RUN rm -rf /root/.npm /root/.pnpm-store /tmp/* +HEALTHCHECK --interval=30s --timeout=3s --start-period=25s --retries=3 CMD curl -fs http://localhost:3008/api/health || exit 1 + EXPOSE 3008 # 使用 supervisor 启动