image_build
Build a container image from a Dockerfile using a specified build context. Supports tagging, build arguments, target stages, and cache control.
Instructions
Build a container image from a Dockerfile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Tags for the built image (e.g. ['myapp:latest', 'myapp:v1']) | |
| file | No | Path to the Dockerfile (default: 'Dockerfile' in context) | |
| path | Yes | Path to the build context directory | |
| pull | No | Always attempt to pull a newer version of the image | |
| label | No | Metadata labels | |
| target | No | Target build stage | |
| noCache | No | Do not use cache when building the image | |
| verbose | No | Enable verbose output | |
| buildArg | No | Build-time variables (KEY=VALUE) |