From 5c10ec3794ed8c4278e333bde4d0779a8faf082d Mon Sep 17 00:00:00 2001 From: lzw-723 Date: Wed, 25 Mar 2026 14:26:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=90=AF=E5=8A=A8=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 --- docker/entrypoint.sh | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index d25d347..6b6dbdc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,9 +43,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ WORKDIR /app -# Copy Dart AOT runtime from build stage -COPY --from=backend-build /runtime/ / - # Copy the compiled Dart server COPY --from=backend-build /app/bin/server /app/bin/server diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 9edc7dc..3a9e0f0 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -20,7 +20,7 @@ node index.js & FRONTEND_PID=$! # 捕获退出信号,优雅关闭两个服务 -trap "echo 'Shutting down...'; kill $BACKEND_PID $FRONTEND_PID 2>/dev/null; exit 0" SIGTERM SIGINT +trap "echo 'Shutting down...'; kill $BACKEND_PID $FRONTEND_PID 2>/dev/null; exit 0" TERM INT # 等待任意进程退出 wait -n $BACKEND_PID $FRONTEND_PID