Spaces:
Sleeping
Sleeping
| $ErrorActionPreference = "Stop" | |
| $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path | |
| $PortConfig = Get-Content (Join-Path $ScriptDir "port.json") -Raw | ConvertFrom-Json | |
| $Port = [int]$PortConfig.port | |
| $ImageName = "backtrader-mcp" | |
| Set-Location $ScriptDir | |
| docker build -t $ImageName . | |
| docker run --rm -p "${Port}:7860" $ImageName | |