# kosa8 build

Build an image from a Dockerfile

## Usage

```
kosa8 build [PATH]
```

Builds inside the engine VM, so the build cannot reach your filesystem
outside the context directory you give it. The context is sent to the VM
first, so a directory full of large files it does not need makes every build
slower — a .dockerignore is worth writing.

## Flags

| Flag | Type | What it does | Default |
|---|---|---|---|
| `--build-arg` | stringArray | build-time variable KEY=VALUE | `[]` |
| `--file, -f` | string | Dockerfile name within the context | `Dockerfile` |
| `--tag, -t` | string | name for the built image |  |

## Example

```
  kosa8 build -t app .
  kosa8 build -t app:dev -f Dockerfile.dev --build-arg VERSION=1.2 .
```

---
Source: https://docs.kosa8.com/reference/build/
