You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,23 @@
2
2
3
3
> **⚠️ Experimental** - This library is currently experimental and we're actively seeking feedback. Please try it out and let us know what you think!
4
4
5
-
A library to spin up a sandboxed environment.
5
+
A library to spin up a sandboxed environment. **If you'd like to try one of our pre-made examples, take a look at [examples/basic](./examples/basic) ready to deploy to your Cloudflare account!**
6
+
7
+
First, create a Dockerfile at the root of your project, with the following content:
8
+
9
+
```Dockerfile
10
+
# If building your project on amd64, use:
11
+
FROM docker.io/ghostwriternr/cloudflare-sandbox:0.0.4
12
+
# If building your project on arm64, use:
13
+
# FROM docker.io/ghostwriternr/cloudflare-sandbox-arm:0.0.4
14
+
15
+
EXPOSE 3000
16
+
17
+
# Run the same command as the original image
18
+
CMD ["bun", "index.ts"]
19
+
```
20
+
21
+
> **NOTE**: In an upcoming release, this step will be removed entirely and you can reference a single Docker image published by us directly in your wrangler configuration below.
6
22
7
23
First, setup your wrangler.json to use the sandbox:
8
24
@@ -12,7 +28,7 @@ First, setup your wrangler.json to use the sandbox:
0 commit comments