Dockerfile) or Containerfile and produces an image tagged with -t option. The build runs in isolation using BuildKit, and resource limits may be set for the build process itself.
When no -f/--file is specified, the build command will look for Dockerfile first, then fall back to Containerfile if Dockerfile is not found.
Usage
Arguments
Build directory
Options
Add the architecture type to the build
Set build-time variables (format: key=val)
Number of CPUs to allocate to the builder container
Path to Dockerfile
Set a label (format: key=val)
Amount of builder container memory (1MiByte granularity), with optional K, M, G, T, or P suffix
Do not use cache
Output configuration for the build (format:
type=<oci|tar|local>[,dest=])Add the OS type to the build
Add the platform to the build (format: os/arch[/variant], takes precedence over —os and —arch)
Progress type (format: auto|plain|tty)
Pull latest image
Suppress build output
Name for the built image (can be specified multiple times)
Set the target build stage
Builder shim vsock port