fix(docker): clear build cache on every build to stop unbounded disk growth
This commit is contained in:
1 parent
649e2f0663
commit
a640e40a5d
2 files changed
+8
No files matched your search
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user