Skip to content

Commit 4c96f9f

Browse files
authored
Merge pull request #5 from e2b-dev/minor-fixes
Minor docs fixes
2 parents b0bd68f + e3b5abb commit 4c96f9f

File tree

4 files changed

+3
-180
lines changed

4 files changed

+3
-180
lines changed

index.mdx

Lines changed: 0 additions & 97 deletions
This file was deleted.

quickstart.mdx

Lines changed: 0 additions & 80 deletions
This file was deleted.

template/how-it-works.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ We call this sandbox snapshot a _sandbox template_.
2525
</Note>
2626

2727
## Caching
28-
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.
28+
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.
2929
Each layer is cached based on the command and its inputs (e.g., files copied, command executed, environment variables set).
3030
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.
3131

template/quickstart.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Create a template file with the following name and content
6868
import { Template, waitForTimeout } from "e2b";
6969

7070
export const template = Template()
71-
.fromImage("ubuntu:22.04")
71+
.fromBaseImage()
7272
.setEnvs({
7373
HELLO: "Hello, World!",
7474
})
@@ -80,7 +80,7 @@ from e2b import Template, wait_for_timeout
8080

8181
template = (
8282
Template()
83-
.from_image("ubuntu:22.04")
83+
.from_base_image()
8484
.set_envs(
8585
{
8686
"HELLO": "Hello, World!",

0 commit comments

Comments
 (0)