LATE.IO2 / run.sh
AIEONE
Initial commit syncing local server with Hugging Face Space
490ec84
#!/bin/bash
echo "πŸ›‘ Stopping and removing old container if it exists..."
docker stop agentic-dashboard 2>/dev/null && docker rm agentic-dashboard 2>/dev/null
echo "🧼 Cleaning Docker build cache (legacy fallback)..."
docker builder prune --all --force || true
echo "βš™οΈ Rebuilding Docker image (no cache)..."
docker build -t agentic-dashboard . --no-cache
echo "πŸš€ Launching new container..."
docker run -d \
-p 7860:5000 \
-e STATIC_FILES_DIR=/app/static \
--name agentic-dashboard \
agentic-dashboard
echo "⏳ Waiting 5 seconds for container to initialize..."
sleep 5
echo "πŸ“œ Showing last 20 log lines..."
docker logs --tail=20 agentic-dashboard
echo "βœ… DONE. Visit http://137.184.173.199:7860 in your browser"