build_image
Build a Docker image from a build context or Dockerfile content, supporting custom tags, build arguments, and target stages.
Instructions
Build a Docker image from a Dockerfile or build context path.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"context": "<context>",
"tag": "<tag>"
},
"name": "build_image"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | Build context path or Dockerfile content | |
| tag | Yes | Tag for the built image (e.g., 'myapp:v1') | |
| dockerfile | No | Dockerfile name relative to context (default: 'Dockerfile') | |
| build_args | No | Build arguments | |
| target | No | Target build stage |