#!/bin/bash
# 算力调度服务（compute-engine / new-api）启动
set -euo pipefail
cd "$(dirname "${BASH_SOURCE[0]}")/compute-engine"

echo "构建算力引擎镜像..."
bash build.sh

echo "启动算力引擎（仅 loopback :3000）..."
docker compose up -d
echo "算力引擎就绪：http://127.0.0.1:3000（经 core 算力服务代理，不对外直连）"
