Skip to main content

build_image

Function build_image 

Source
pub async fn build_image(
    client: &DockerClient,
    tag: Option<&str>,
    progress: &mut ProgressReporter,
    no_cache: bool,
) -> Result<String, DockerError>
Expand description

Build the opencode image from embedded Dockerfile

Shows real-time build progress with streaming output. Returns the full image:tag string on success.

ยงArguments

  • client - Docker client
  • tag - Image tag (defaults to IMAGE_TAG_DEFAULT)
  • progress - Progress reporter for build feedback
  • no_cache - If true, build without using Docker layer cache