# kraft cloud compose build

Build a compose project


```
kraft cloud compose build [FLAGS] [COMPONENT]
```

### Examples

```
# Build a compose project
$ kraft cloud compose build

# (If applicable) Set or override a runtime for a particular service
$ kraft cloud compose build --runtime app=base:latest

# Push the service images after a successful build
$ kraft cloud compose build --push

```

## Options

```
  -h, --help                 help for build
      --keep-file-owners     Keep file owners (user:group) in the rootfs (false sets 'root:root')
      --push                 Push the built service images
      --rootfs-type string   Set the type of the format of the rootfs (cpio/erofs) (default "cpio")
      --runtime strings      Alternative runtime to use when packaging a service
```

## Options inherited from parent commands

```
      --allow-insecure    Allow insecure connections to the Unikraft Cloud API
      --env-file string   Set the environment file.
      --file string       Set the Compose file.
      --metro string      Unikraft Cloud metro location
      --token string      Unikraft Cloud access token
```

## See Also

* [`kraft cloud compose`](/docs/cli/kraft/cloud/compose): Manage Compose deployments on Unikraft Cloud

