mirror of
https://github.com/THU-MAIC/OpenMAIC.git
synced 2026-10-02 09:24:43 +08:00
* fix(docker): build workspace packages in the builder stage, not during install The root postinstall builds nine workspace packages inside `pnpm install`. In the Docker deps stage that step peaks above 1 GiB, almost entirely from the importer's rollup + terser pass, which exhausts small Docker VMs and hangs the build (a 1 GiB container fails with a JS heap OOM). - deps: `pnpm install --frozen-lockfile --ignore-scripts`, so the stage only resolves and links dependencies (peak ~1051 MiB -> ~315 MiB). - builder: run the same chain explicitly via the new `build:packages` script, with `--max-old-space-size=1024` so a runaway build fails with a clear heap error instead of taking down the VM; public/vendor is produced here now. - `postinstall` delegates to `build:packages`, so local installs are unchanged. - CI: build the deps + builder stages when an image input changes; the main Dockerfile was not built in CI before. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DYifP8wM4XJQ3Hc2qsF6zf * ci(docker): build the main image for any non-docs change The builder stage copies the whole build context, so application sources and config such as next.config.ts are image inputs too. Only skip the image build when every changed file is documentation. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DYifP8wM4XJQ3Hc2qsF6zf --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com>