From e8074dc5fcce231d601fbecf1922ca0fb7b1add1 Mon Sep 17 00:00:00 2001 From: Randall Stillwell Date: Tue, 7 Jul 2026 23:33:31 -0500 Subject: [PATCH] fix(docker): unblock orchestrator and worker Coolify builds Disable inherited incremental compilation for tsup DTS in orchestrator and worker, and align Dockerfile entrypoints with dist/index.js output. Co-authored-by: Cursor --- apps/orchestrator/tsconfig.json | 3 ++- apps/worker/tsconfig.json | 3 ++- docker/Dockerfile | 12 ++++++------ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/orchestrator/tsconfig.json b/apps/orchestrator/tsconfig.json index 486abdd..a3878ee 100644 --- a/apps/orchestrator/tsconfig.json +++ b/apps/orchestrator/tsconfig.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "dist", "rootDir": "src", - "noEmit": true + "noEmit": true, + "incremental": false }, "include": ["src/**/*"] } diff --git a/apps/worker/tsconfig.json b/apps/worker/tsconfig.json index 486abdd..a3878ee 100644 --- a/apps/worker/tsconfig.json +++ b/apps/worker/tsconfig.json @@ -3,7 +3,8 @@ "compilerOptions": { "outDir": "dist", "rootDir": "src", - "noEmit": true + "noEmit": true, + "incremental": false }, "include": ["src/**/*"] } diff --git a/docker/Dockerfile b/docker/Dockerfile index 8449e08..4d69964 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -116,8 +116,8 @@ COPY docker/next.config.docker.ts ./apps/web/next.config.ts # runtime web image never reads /tmp. COPY --from=collab-build /app/apps/collab-server/dist/index.mjs /tmp/.collab-built COPY --from=mcp-build /app/apps/mcp-server/dist/index.js /tmp/.mcp-built -COPY --from=orchestrator-build /app/apps/orchestrator/dist/index.mjs /tmp/.orchestrator-built -COPY --from=worker-build /app/apps/worker/dist/index.mjs /tmp/.worker-built +COPY --from=orchestrator-build /app/apps/orchestrator/dist/index.js /tmp/.orchestrator-built +COPY --from=worker-build /app/apps/worker/dist/index.js /tmp/.worker-built ENV NEXT_TELEMETRY_DISABLED=1 ENV NODE_ENV=production @@ -241,10 +241,10 @@ COPY --from=orchestrator-build --chown=orchestrator:nodejs /app/apps/orchestrato USER orchestrator HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \ - CMD pgrep -f "node.*dist/index\\.mjs" > /dev/null || exit 1 + CMD pgrep -f "node.*dist/index\\.js" > /dev/null || exit 1 WORKDIR /app/apps/orchestrator -CMD ["node", "dist/index.mjs"] +CMD ["node", "dist/index.js"] # ============================================================================ @@ -287,7 +287,7 @@ RUN cd /app/repo \ USER worker HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \ - CMD pgrep -f "node.*dist/index\\.mjs" > /dev/null || exit 1 + CMD pgrep -f "node.*dist/index\\.js" > /dev/null || exit 1 WORKDIR /app/apps/worker -CMD ["node", "dist/index.mjs"] +CMD ["node", "dist/index.js"]