Files
BlackBean/pigo/coop/build.ps1
T
2026-08-14 23:41:57 +08:00

20 lines
858 B
PowerShell
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 构建 pigo 协作镜像(单 agent 版:一个 pigo 进程完成任务,blackboard 工具负责原子创建 DONE
# 用法(仓库根目录执行): powershell -File coop/build.ps1
$ErrorActionPreference = "Stop"
docker build -f coop/Dockerfile -t pigo-coop .
Write-Host ""
Write-Host "构建完成: pigo-coop"
Write-Host ""
Write-Host "运行示例(外部调用方传入模型/API 信息与任务):"
Write-Host ' docker run --rm \'
Write-Host ' -e MODEL=deepseek-chat \'
Write-Host ' -e BASE_URL=https://api.deepseek.com \'
Write-Host ' -e API_KEY=<your-key> \'
Write-Host ' -e TASK="请为 XX 编写设计文档并实现原型" \'
Write-Host ' -e ROUND_MAX=6 \'
Write-Host ' pigo-coop'
Write-Host ""
Write-Host "黑板产物默认在容器内 /blackboard,如需保留可挂载卷: -v $PWD/blackboard:/blackboard"