#!/usr/bin/env bash # 构建沙箱基础镜像。 # - ias-stdio-runner : 运行 tool_manager 产出的不受信任工具(无网络只读) # - ias-tool-builder : tool_manager 编译 Rust 工具(离线) # 无需为每个工具单独写 Dockerfile。 set -euo pipefail cd "$(dirname "$0")" # docker/ echo "=== 构建 ias-stdio-runner(无网络只读容器)===" docker build -t ias-stdio-runner -f Dockerfile.stdio-runner . echo "=== 构建 ias-tool-builder(Rust 编译容器)===" docker build -t ias-tool-builder -f Dockerfile.tool-builder . echo "=== 完成 ===" docker images | grep -E '^ias-(stdio|tool)'