> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# dockerfile-runs-as-root

> The final image selects root or inherits an unverified base-image user.

## What it flags

The final stage has no `USER` instruction, or its last `USER` is root. Builder stages are not checked.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "dockerfile-runs-as-root": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.