causalml / run_docker.sh
ghh1125's picture
Upload 14 files
21327b6 verified
Raw
History Blame Contribute Delete
281 Bytes
#!/usr/bin/env bash
set -euo pipefail
PORT=$(python3 -c "import json; print(json.load(open('port.json', 'r', encoding='utf-8'))['port'])")
IMAGE="causalml-mcp"
docker build -t "$IMAGE" .
docker run --rm -it -p "${PORT}:${PORT}" -e MCP_TRANSPORT=http -e MCP_PORT="$PORT" "$IMAGE"