No description
Find a file
Randall Stillwell d4e4f9dbf0 fix(docker): serialize build stages so next build doesn't OOM on the 8 GB host
Coolify deploys were failing with exit 255 (kernel OOM, no Docker error)
around the 73s mark of `next build`. Root cause: docker/Dockerfile's three
build stages (web-build, collab-build, mcp-build) all `FROM deps`, and
BuildKit was running them in parallel. The web-build alone wants ~3 GB
heap (capped at 5120 MB) and was racing tsup workers + buildkit + dockerd
on an 8 GB host until the kernel reaped it.

docker-compose.coolify.yml already had a comment claiming `depends_on:
[collab, mcp]` on `web` would serialize the builds. It doesn't —
`depends_on` only orders runtime startup, not `docker compose build`.

Fix: enforce ordering inside the Dockerfile DAG by COPYing one trivial
artifact from each lighter stage into web-build. BuildKit now waits for
collab-build and mcp-build to finish before starting the heavy Next.js
compile, which then gets the host effectively to itself. The copied
files land in /tmp and are never read by the runtime web image.

Also updated the compose comment to reflect the new (and accurate)
ordering mechanism.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-05 21:02:39 -05:00
.cursor chore(agent-coordination): wire Cursor MCP + one-shot importer for dogfooding 2026-06-03 08:57:21 -05:00
.github/workflows test(ci): bootstrap vitest + GitHub Actions and lock in 3-gate quality bar 2026-06-02 09:23:55 -05:00
apps fix(workspaces): wire top-header create-workspace button + clarify echodo db naming 2026-06-05 16:33:41 -05:00
config feat(markdown-backlog): close the sync loop with DB → frontmatter export 2026-06-03 10:21:22 -05:00
docker fix(docker): serialize build stages so next build doesn't OOM on the 8 GB host 2026-06-05 21:02:39 -05:00
docs feat(backlog): workflow_prompt with task → epic → plan inheritance 2026-06-02 22:18:18 -05:00
packages feat(markdown-backlog): close the sync loop with DB → frontmatter export 2026-06-03 10:21:22 -05:00
plans chore(plans): mark export-db-to-markdown-frontmatter done 2026-06-03 10:56:34 -05:00
.env.example fix(workspaces): wire top-header create-workspace button + clarify echodo db naming 2026-06-05 16:33:41 -05:00
.gitignore feat: ECHODO app shell, Coolify deploy, Authentik + Umami 2026-04-26 14:34:34 -05:00
AGENTS.md fix(workspaces): wire top-header create-workspace button + clarify echodo db naming 2026-06-05 16:33:41 -05:00
package.json test(ci): bootstrap vitest + GitHub Actions and lock in 3-gate quality bar 2026-06-02 09:23:55 -05:00
pnpm-lock.yaml test(ci): bootstrap vitest + GitHub Actions and lock in 3-gate quality bar 2026-06-02 09:23:55 -05:00
pnpm-workspace.yaml feat: Full project management application scaffold 2026-03-26 22:39:16 -05:00
tsconfig.json feat: Full project management application scaffold 2026-03-26 22:39:16 -05:00
turbo.json test(ci): bootstrap vitest + GitHub Actions and lock in 3-gate quality bar 2026-06-02 09:23:55 -05:00