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
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 |
Input Schema (JSON Schema)
{
"properties": {
"buildArgs": {
"additionalProperties": {
"type": "string"
},
"description": "Build-time variables",
"type": "object"
},
"cwd": {
"description": "Working directory",
"type": "string"
},
"dockerfile": {
"description": "Name of Dockerfile (default: Dockerfile)",
"type": "string"
},
"noCache": {
"default": false,
"description": "Do not use cache when building",
"type": "boolean"
},
"path": {
"description": "Build context path (directory containing Dockerfile)",
"type": "string"
},
"tag": {
"description": "Name and optionally a tag (format: \"name:tag\")",
"type": "string"
},
"target": {
"description": "Set target build stage",
"type": "string"
}
},
"required": [
"path"
],
"type": "object"
}