# nerdctl_image_build

Build an image from a Dockerfile.

```rhai
nerdctl_image_build(tag, context_path) -> CommandResult
```

## Parameters

- `tag` (string): Tag for the resulting image
- `context_path` (string): Build context directory path

## Returns

Returns a `CommandResult` with the build operation output.

## Examples

```rhai
// Build from Dockerfile in current directory
let result = nerdctl_image_build("myapp:latest", ".");

// Build from specific directory
let result2 = nerdctl_image_build("myapp:v1", "./app");

if result.success {
    print("Build successful!");
    print(result.stdout);
}
```

## Notes

- Looks for Dockerfile in context_path
- Context path is the root for COPY/ADD in Dockerfile
- Similar to `docker build` command
