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: packages/projects-docs/pages/sdk/templates.mdx
+29-5Lines changed: 29 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -129,27 +129,51 @@ If you run the template builder on **CI** you can pass the `--ci` flag. This rem
129
129
130
130
By default the template uses a universal image which gives you the most common tools and setup. You can configure your own environment by using docker. You can create your own `.codesandbox/Dockerfile` file to configure the environment, for example:
131
131
132
-
```Dockerfile
133
-
FROM node:latest
134
-
WORKDIR /project/workspace
132
+
```shell
133
+
# ---- Builder: install deps & build ----
134
+
FROM node:22-alpine AS builder
135
+
136
+
# Install zsh (and optionally git, curl, etc.)
137
+
RUN apk add --no-cache zsh git curl
138
+
139
+
# Enable corepack (pnpm/yarn) if you use it; safe to keep on
140
+
RUN corepack enable
141
+
142
+
WORKDIR /workspace/project
135
143
```
136
144
145
+
Ensure that you include `zsh` as this is our default shell.
146
+
137
147
<Callouttype="warning">
138
148
This only works from SDK version `2.3.0`. You can rely on the default devcontainer setup for older versions.
139
149
</Callout>
140
150
151
+
### CodeSandbox Editor
152
+
153
+
If you want to use the CodeSandbox editor on https://codesandbox.io for debugging you will need to build from the CodeSandbox image:
154
+
155
+
```bash
156
+
FROM ghcr.io/codesandbox/devcontainers/typescript-node:latest
157
+
```
158
+
159
+
<Callout>
160
+
You can debug Sandboxes using the CLI Dashboard `npx @codesandbox/sdk`.
161
+
</Callout>
162
+
141
163
### Docker Compose Support
142
164
143
165
You can run additional services using Docker Compose by adding a `docker-compose.yml` configuration to your template:
0 commit comments