File size: 744 Bytes
490ec84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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"