fix(docker): reorder build stages so web-build comes after its --from= sources #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: rstillwell/ubiquitous-invention#2
Loading…
Reference in a new issue
No description provided.
Delete branch "hotfix/docker-build-ordering"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follow-up to #1. The merged version of #1 fails Coolify's builder at parse time:
#1 introduced `COPY --from=collab-build` and `COPY --from=mcp-build` references inside the `web-build` stage to force BuildKit to serialize the three builds, but `web-build` was still defined above the two stages it references. That works on full BuildKit DAG builders but not on the legacy Docker builder Coolify uses, which requires forward stages to be lexically below.
Fix
Move `collab-build` and `mcp-build` above `web-build` in the file. Same DAG, same intent, same effect — just expressed in a form the older builder accepts. Added a `NOTE:` comment above the build stages so the next person who tries to "tidy up" the file order doesn't reintroduce the regression.
Pure infrastructure / file-order change. No app code, no env contract touched. Net diff vs. main is one moved stage block plus the explanatory comment.
Test plan
Made with Cursor