fix: Dockerfile 直接复制 tsconfig.json 到 runner 镜像

This commit is contained in:
aiyimickey 2026-07-01 19:43:57 +08:00
parent e5737352d5
commit 496ce7b1a2
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ COPY --from=base /app/.next/static ./.next/static
COPY --from=base /app/scripts ./scripts COPY --from=base /app/scripts ./scripts
COPY --from=base /app/src/lib ./src/lib COPY --from=base /app/src/lib ./src/lib
COPY --from=base /app/shared ./shared COPY --from=base /app/shared ./shared
COPY --from=base /app/tsconfig.json ./ COPY tsconfig.json ./
COPY entrypoint.sh ./ COPY entrypoint.sh ./
RUN npm install -g tsx tsconfig-paths RUN npm install -g tsx tsconfig-paths

View File

@ -4,8 +4,8 @@ set -e
echo "[entrypoint] Starting monitor-ai..." echo "[entrypoint] Starting monitor-ai..."
# 启动 MonitorWorker后台tsx + tsconfig-paths 解析路径别名 # 启动 MonitorWorker后台tsx 即时执行 TypeScript
npx tsx -r tsconfig-paths/register scripts/monitor-worker.ts & npx tsx scripts/monitor-worker.ts &
WORKER_PID=$! WORKER_PID=$!
# 启动 Next.js standalone server # 启动 Next.js standalone server