Commit a1443ce
ci(docker): collapse build to a single npm ci to fix slow builds
The previous server/Dockerfile had parallel build + deps stages each
running npm ci against ~500 Cosmos packages — they contended for
registry bandwidth and the build was sitting at "deps 4/4" for 15+
minutes on cold cache.
- Single build stage: npm ci once, run tsc, then npm prune --omit=dev
to drop devDependencies before copying to runtime.
- --ignore-scripts: blue-js-sdk and @coinbase/x402 postinstalls are
inert (one is a console notice, the other has || true fallback);
esbuild/fsevents only matter on dev. Skipping is safe and avoids
any future hangs.
- --no-audit --no-fund: less log noise, less work.
- Add server/.dockerignore to keep build context lean.
- Switch GHA cache export to mode=min: only the final layer is
persisted, which is plenty for a single-stage install.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 979fd31 commit a1443ce
3 files changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
| 10 | + | |
| 11 | + | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
| |||
24 | 19 | | |
25 | 20 | | |
26 | 21 | | |
27 | | - | |
| 22 | + | |
28 | 23 | | |
29 | 24 | | |
30 | 25 | | |
| |||
0 commit comments