docker_build
Create Docker images from a Dockerfile using specified context, tag, build arguments, and platform options. Supports multi-stage builds, cache control, and base image updates.
Instructions
Build a Docker image from a Dockerfile
Input Schema
Name | Required | Description | Default |
---|---|---|---|
build_args | No | Build arguments as key-value pairs | |
context | No | Build context path (default: current directory) | |
dockerfile | No | Path to Dockerfile (relative to context) | |
no_cache | No | Do not use cache when building | |
platform | No | Target platform (e.g., linux/amd64, linux/arm64) | |
pull | No | Always attempt to pull newer version of base image | |
tag | No | Tag for the built image (e.g., myapp:latest) | |
target | No | Target stage for multi-stage builds |