fix(docker): reorder build stages so web-build comes after its --from= sources #2

Merged
varutasu merged 1 commit from hotfix/docker-build-ordering into main 2026-06-05 22:13:40 -04:00

1 commit

Author SHA1 Message Date
Randall Stillwell
4ea74ed187 fix(docker): reorder build stages so web-build comes after its --from= sources
Coolify's builder fails the build at parse time with:
  "cannot copy from stage 'collab-build', it needs to be defined before
   current stage 'web-build'"

The previous commit introduced forward COPY --from references that work
on newer BuildKit DAG builders but not on the legacy Docker builder
Coolify uses. Move `collab-build` and `mcp-build` above `web-build` in
lexical order so the references resolve. Functionally identical — the
DAG ordering effect is the same — just expressed in a way the older
builder accepts.

Added a NOTE comment above the stages so the next person who tries to
"clean up" the file order doesn't reintroduce the same regression.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 21:06:59 -05:00