> For the complete documentation index, see [llms.txt](https://docs.deepworm.xyz/deepworm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.deepworm.xyz/deepworm/developer-guides/deploying-the-worm-in-a-tee.md).

# Deploying the WORM in a TEE

First build the enclave using [nix](https://github.com/DeterminateSystems/nix-installer):

```
git clone https://github.com/BrainsOnChain/DeepWorm
cd DeepWorm/worm
nix build -v
```

The above creates a directory called `result`.

```
$ ls result/
image.eif  log.txt  pcr.json
```

Host image.eif at a publicly follow the steps [here](http://docs.marlin.org/user-guides/oyster/instances/quickstart/deploy) to deploy the enclave image on a Marlin node with the following parameters:

Instance: c6a.xlarge\
Architecture: amd64\
Region: Any\
Bandwidth: 10 KB/s\
vCPU: Default\
Memory: Default

The `pcr.json` file contains the enclave PCRs which can be used to verify against TEE attestations.

<figure><img src="/files/C6q6iGLKZk7h7nHPujcc" alt=""><figcaption><p>Deploying the EIF on hub.marlin.org</p></figcaption></figure>
