fix: Dockerfile 直接复制 tsconfig.json 到 runner 镜像
This commit is contained in:
parent
e5737352d5
commit
496ce7b1a2
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue