docker_build
Build Docker images from Dockerfiles by specifying build context path, tags, build arguments, and target stages to create containerized applications.
Instructions
Build a Docker image from a Dockerfile
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": {
"path": "<path>"
},
"name": "docker_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Build context path (directory containing Dockerfile) | |
| tag | No | Name and optionally a tag (format: "name:tag") | |
| dockerfile | No | Name of Dockerfile (default: Dockerfile) | |
| buildArgs | No | Build-time variables | |
| target | No | Set target build stage | |
| noCache | No | Do not use cache when building | |
| cwd | No | Working directory |