build_image
Build a Docker image from a build context or Dockerfile, specifying tag, optional Dockerfile path, build arguments, and target stage.
Instructions
Build a Docker image from a Dockerfile or build context path.
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 |