From 496ce7b1a2bc9d7320e8ea3b86e39530dd82e99e Mon Sep 17 00:00:00 2001 From: aiyimickey <39365912+aiyimickey@users.noreply.github.com> Date: Wed, 1 Jul 2026 19:43:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Dockerfile=20=E7=9B=B4=E6=8E=A5=E5=A4=8D?= =?UTF-8?q?=E5=88=B6=20tsconfig.json=20=E5=88=B0=20runner=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index cddb24d..ecf45b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ COPY --from=base /app/.next/static ./.next/static COPY --from=base /app/scripts ./scripts COPY --from=base /app/src/lib ./src/lib COPY --from=base /app/shared ./shared -COPY --from=base /app/tsconfig.json ./ +COPY tsconfig.json ./ COPY entrypoint.sh ./ RUN npm install -g tsx tsconfig-paths diff --git a/entrypoint.sh b/entrypoint.sh index 6abd00e..4a6dd3d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,8 +4,8 @@ set -e echo "[entrypoint] Starting monitor-ai..." -# 启动 MonitorWorker(后台,tsx + tsconfig-paths 解析路径别名) -npx tsx -r tsconfig-paths/register scripts/monitor-worker.ts & +# 启动 MonitorWorker(后台,tsx 即时执行 TypeScript) +npx tsx scripts/monitor-worker.ts & WORKER_PID=$! # 启动 Next.js standalone server