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 <cursoragent@cursor.com>
This commit is contained in:
Randall Stillwell 2026-07-07 23:33:31 -05:00
parent 3e33cab2d6
commit e8074dc5fc
3 changed files with 10 additions and 8 deletions

View file

@ -3,7 +3,8 @@
"compilerOptions": { "compilerOptions": {
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"noEmit": true "noEmit": true,
"incremental": false
}, },
"include": ["src/**/*"] "include": ["src/**/*"]
} }

View file

@ -3,7 +3,8 @@
"compilerOptions": { "compilerOptions": {
"outDir": "dist", "outDir": "dist",
"rootDir": "src", "rootDir": "src",
"noEmit": true "noEmit": true,
"incremental": false
}, },
"include": ["src/**/*"] "include": ["src/**/*"]
} }

View file

@ -116,8 +116,8 @@ COPY docker/next.config.docker.ts ./apps/web/next.config.ts
# runtime web image never reads /tmp. # runtime web image never reads /tmp.
COPY --from=collab-build /app/apps/collab-server/dist/index.mjs /tmp/.collab-built 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=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=orchestrator-build /app/apps/orchestrator/dist/index.js /tmp/.orchestrator-built
COPY --from=worker-build /app/apps/worker/dist/index.mjs /tmp/.worker-built COPY --from=worker-build /app/apps/worker/dist/index.js /tmp/.worker-built
ENV NEXT_TELEMETRY_DISABLED=1 ENV NEXT_TELEMETRY_DISABLED=1
ENV NODE_ENV=production ENV NODE_ENV=production
@ -241,10 +241,10 @@ COPY --from=orchestrator-build --chown=orchestrator:nodejs /app/apps/orchestrato
USER orchestrator USER orchestrator
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \ 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 WORKDIR /app/apps/orchestrator
CMD ["node", "dist/index.mjs"] CMD ["node", "dist/index.js"]
# ============================================================================ # ============================================================================
@ -287,7 +287,7 @@ RUN cd /app/repo \
USER worker USER worker
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \ 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 WORKDIR /app/apps/worker
CMD ["node", "dist/index.mjs"] CMD ["node", "dist/index.js"]