fix(docker): clear build cache on every build to stop unbounded disk growth
CI / check (push) Successful in 1m17s
CI / deploy (push) Successful in 2m11s

This commit is contained in:
openhands committed 2026-09-07 16:18:04 +02:00
1 parent 649e2f0663
commit a640e40a5d
2 files changed
+8

No files matched your search

+3
View File
@@ -79,6 +79,9 @@ fi
log "Node major gate OK (major=${float_major:-?})"
# --- 4. Rebuild the image ---
# Reset the BuildKit cache first so the build doesn't accumulate unbounded
# layers on disk across daily rebuilds.
docker builder prune -af --filter "until=1h" --keep-storage=0 2>>"$LOG_FILE" || true
docker compose build >>"$LOG_FILE" 2>&1 || die "docker compose build failed" 2
log "docker compose build OK"