# Dockerfile
RUN curl -fsS https://dotenvx.sh | sh

...

RUN dotenvx ext prebuild
CMD ["dotenvx", "run", "--", "node", "index.js"]
```

</details>
<details><summary>`ext prebuild directory`</summary><br>

Prevent `.env` files from being built into your docker containers inside a specified path to a directory.

Add it to your `Dockerfile`.

```sh