﻿# protect --docker

> Check env files during a Docker build. Use .dockerignore to exclude files from the build context

[CLI](/docs/cli/)

```cli
$ dotenvx protect --docker
```

## Usage

Check env files during a Docker build. Use `.dockerignore` to exclude files from the build context.

```docker
RUN dotenvx protect --docker
```
