fix: add --no-cache to ensure frontend rebuilds with correct API base
This commit is contained in:
@@ -58,9 +58,9 @@ echo "📦 Using compose file: $COMPOSE_FILE"
|
|||||||
echo "🧹 Cleaning up previous containers..."
|
echo "🧹 Cleaning up previous containers..."
|
||||||
docker compose -f "$COMPOSE_FILE" down -v 2>/dev/null || true
|
docker compose -f "$COMPOSE_FILE" down -v 2>/dev/null || true
|
||||||
|
|
||||||
# Build frontend with correct API base URL
|
# Build frontend with correct API base URL (force no cache)
|
||||||
echo "🔨 Building frontend..."
|
echo "🔨 Building frontend..."
|
||||||
docker compose -f "$COMPOSE_FILE" build --build-arg VITE_API_BASE=http://backend:8000 frontend
|
docker compose -f "$COMPOSE_FILE" build --no-cache --build-arg VITE_API_BASE=http://backend:8000 frontend
|
||||||
|
|
||||||
# Start services
|
# Start services
|
||||||
echo "📦 Starting services..."
|
echo "📦 Starting services..."
|
||||||
|
|||||||
Reference in New Issue
Block a user