docker_build
Build Docker images from Dockerfiles to containerize applications, supporting build arguments, multi-stage targets, and platform specifications.
Instructions
Build a Docker image from a Dockerfile
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "docker_build"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Build context path (default: current directory) | |
| dockerfile | No | Path to Dockerfile (relative to context) | |
| tag | No | Tag for the built image (e.g., myapp:latest) | |
| build_args | No | Build arguments as key-value pairs | |
| target | No | Target stage for multi-stage builds | |
| no_cache | No | Do not use cache when building | |
| pull | No | Always attempt to pull newer version of base image | |
| platform | No | Target platform (e.g., linux/amd64, linux/arm64) |