Skip to content

Commit d0ed31b

Browse files
committed
Add introductions to base image subsections and move note to end
1 parent 5600736 commit d0ed31b

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

docs/template/base-image.mdx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ template = Template(
2929

3030
## Defining base image
3131

32-
<Note>
33-
You can only call base image methods once per template. Subsequent calls will throw an error.
34-
</Note>
32+
Every template starts with a base image that provides the foundation for your sandbox environment.
3533

3634
### Predefined base images
3735

36+
Use convenience methods for common base images with Ubuntu, Debian, Python, Node.js, or Bun:
37+
3838
<CodeGroup>
3939

4040
```typescript JavaScript & TypeScript
@@ -57,6 +57,8 @@ template.from_bun_image("1.3") # oven/bun:1.3
5757

5858
### Custom base image
5959

60+
Use any Docker image from Docker Hub or other registries:
61+
6062
<CodeGroup>
6163

6264
```typescript JavaScript & TypeScript
@@ -71,6 +73,8 @@ template.from_image("custom-image:latest")
7173

7274
### Default E2B base image
7375

76+
Use the default E2B base image, which comes pre-configured for sandbox environments:
77+
7478
<CodeGroup>
7579

7680
```typescript JavaScript & TypeScript
@@ -85,6 +89,8 @@ template.from_base_image() # e2bdev/base
8589

8690
### Build from existing template
8791

92+
Extend an existing template from your team or organization:
93+
8894
<CodeGroup>
8995

9096
```typescript JavaScript & TypeScript
@@ -99,6 +105,10 @@ template.from_template("acme/other-template") # Full namespaced reference
99105

100106
</CodeGroup>
101107

108+
<Note>
109+
You can only call base image methods once per template. Subsequent calls will throw an error.
110+
</Note>
111+
102112
## Parsing existing Dockerfiles
103113

104114
Convert existing Dockerfiles to template format using `fromDockerfile()`:

0 commit comments

Comments
 (0)