Docker build cache: keep the frontend's node_modules out of Rust builds

The Rust images build from the repository root, and every build copied
services/frontend/node_modules and .next (about 1 GB) into a new layer;
the CI runner's disk filled within a day. They are ignored now (a crate
still includes the tarot deck from services/frontend/src/content).

The CI clean-up pruned with --max-used-space, which deletes nothing with
the containerd image store; it prunes by age (72 hours) instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-23 21:54:27 +00:00
co-authored by Claude Opus 5.5
parent 0d62888831
commit 3e4653fdb2
2 changed files with 10 additions and 2 deletions
+5
View File
@@ -5,3 +5,8 @@ vendor/
legacy/
.git/
**/*.md
# The frontend builds from its own folder (with its own .dockerignore). The
# Rust images use only its src/content (a crate includes the tarot deck), so
# its dependencies and build output stay out: about 1 GB in every image layer.
services/frontend/node_modules/
services/frontend/.next/