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

# Your own environment

> Build a template from a Dockerfile and start sandboxes from it.

**You want** sandboxes that start with your dependencies already installed.

**1. Write a Dockerfile**

Any base image works. `EXPOSE 49983` and `EXPOSE 49990` are refused because the Anona runtime owns those ports, and every `FROM` is pinned by digest at build time.

**2. Build it**

```text build_template
anona-compute template build --name my-env
anona-compute template logs my-env
```

**3. Start from it**

```text start_from_template
anona-compute create -t my-env
```

Limits: a template image of at most 10 GiB uncompressed, a number of templates and a total template storage set by your plan, 2 builds in progress at a time (they run one after another on the shared builder), a build context up to 1 GiB. Details and the SDK route: [Templates](/docs/concepts/templates.md#build-your-own).

> [!WARNING]
>
> Custom template builds are in preview.


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