BioSPPy / run_docker.ps1
ghh1125's picture
Upload 14 files
3ea44d2 verified
Raw
History Blame Contribute Delete
324 Bytes
$ErrorActionPreference = "Stop"
$portConfig = Get-Content -Path "port.json" -Raw | ConvertFrom-Json
$port = [int]$portConfig.port
$imageName = "BioSPPy-mcp"
Write-Host "Building $imageName ..."
docker build -t $imageName .
Write-Host "Running $imageName on port $port ..."
docker run --rm -p "${port}:${port}" $imageName