Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 0 additions & 97 deletions index.mdx

This file was deleted.

80 changes: 0 additions & 80 deletions quickstart.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion template/how-it-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ We call this sandbox snapshot a _sandbox template_.
</Note>

## Caching
The caching concept is similar to [Docker's layer caching](https://docs.docker.com/build/cache/). For each layer command (.copy(), .runCmd(), .setEnvs(), etc.), we create a new layer on top of the existing.
The caching concept is similar to [Docker's layer caching](https://docs.docker.com/build/cache/). For each layer command (`.copy()`, `.runCmd()`, `.setEnvs()`, etc.), we create a new layer on top of the existing.
Each layer is cached based on the command and its inputs (e.g., files copied, command executed, environment variables set).
If a layer command is unchanged and its inputs are the same as in any previous build, we reuse the cached layer instead of rebuilding it.

Expand Down
4 changes: 2 additions & 2 deletions template/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Create a template file with the following name and content
import { Template, waitForTimeout } from "e2b";

export const template = Template()
.fromImage("ubuntu:22.04")
.fromBaseImage()
.setEnvs({
HELLO: "Hello, World!",
})
Expand All @@ -80,7 +80,7 @@ from e2b import Template, wait_for_timeout

template = (
Template()
.from_image("ubuntu:22.04")
.from_base_image()
.set_envs(
{
"HELLO": "Hello, World!",
Expand Down