For the complete documentation index, see llms.txt. This page is also available as Markdown.

iai images build

Build a container image with Docker

Synopsis

Build a container image using the local Docker CLI.

This is a thin wrapper around 'docker build' that requires an explicit tag, Dockerfile, and build context.

iai images build [image_name] [flags]

Examples

  iai images build my-service --tag 1.2.3
  iai images build my-service --tag 1.2.3 --file docker/Dockerfile --context .
  iai images build my-service --tag 1.2.3 --platform linux/amd64

Options

  -c, --context string    Build context directory (default: current directory) (default ".")
  -f, --file string       Path to the Dockerfile (default: ./Dockerfile) (default "Dockerfile")
  -h, --help              help for build
      --platform string   Target platform for the build (currently only linux/amd64 is supported) (default "linux/amd64")
  -t, --tag string        Tag suffix to append to the fixed registry (e.g. 1.2.3)

Options inherited from parent commands

SEE ALSO

Last updated

Was this helpful?