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:
parent
3e33cab2d6
commit
e8074dc5fc
3 changed files with 10 additions and 8 deletions
|
|
@ -3,7 +3,8 @@
|
|||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"noEmit": true
|
||||
"noEmit": true,
|
||||
"incremental": false
|
||||
},
|
||||
"include": ["src/**/*"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,7 +3,8 @@
|
|||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"noEmit": true
|
||||
"noEmit": true,
|
||||
"incremental": false
|
||||
},
|
||||
"include": ["src/**/*"]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue