Enhance deployment script: add cleanup for build cache alongside old images

This commit is contained in:
Hördle Bot
2025-12-04 21:38:04 +01:00
parent 2e93d09236
commit dbcdaf9278

View File

@@ -88,10 +88,13 @@ docker compose build
echo "🔄 Restarting with new image (minimal downtime)..." echo "🔄 Restarting with new image (minimal downtime)..."
docker compose up -d docker compose up -d
# Clean up old images # Clean up old images and build cache
echo "🧹 Cleaning up old images..." echo "🧹 Cleaning up old images..."
docker image prune -f docker image prune -f
echo "🧹 Cleaning up build cache..."
docker builder prune -f
echo "✅ Deployment complete!" echo "✅ Deployment complete!"
echo "" echo ""
echo "📊 Showing logs (Ctrl+C to exit)..." echo "📊 Showing logs (Ctrl+C to exit)..."