File size: 336 Bytes
96bb415
0f7ff0b
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
$ErrorActionPreference = "Stop"

$ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
$PortConfig = Get-Content -Raw (Join-Path $ScriptDir "port.json") | ConvertFrom-Json
$Port = [int]$PortConfig.port
$ImageName = "deepchem-mcp"

Set-Location $ScriptDir
docker build -t $ImageName .
docker run --rm -p "${Port}:7860" $ImageName