Skip to content

Commit c627caf

Browse files
author
benchify
committed
setting up vite template
1 parent 6f25773 commit c627caf

File tree

7 files changed

+2716
-0
lines changed

7 files changed

+2716
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# You can use most Debian-based base images
2+
FROM node:21-slim
3+
4+
# Install dependencies and customize sandbox
5+
WORKDIR /home/user/app
6+
7+
# Pre-install common dependencies to speed up runtime
8+
RUN npm install -g typescript vue@3
9+
10+
# Copy in package.json and install dependencies
11+
COPY package.json /home/user/app/
12+
RUN npm install --legacy-peer-deps
13+
14+
# Initialize Tailwind
15+
RUN npx tailwindcss init
16+
# Copy in config files
17+
COPY *.config* /home/user/app/

templates/vite-template/e2b.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# This is a config for E2B sandbox template.
2+
# You can use template ID (sbv0xivbrwoi5ift78dg) or template name (vite-dynamic-sandbox) to create a sandbox:
3+
4+
# Python SDK
5+
# from e2b import Sandbox, AsyncSandbox
6+
# sandbox = Sandbox("vite-dynamic-sandbox") # Sync sandbox
7+
# sandbox = await AsyncSandbox.create("vite-dynamic-sandbox") # Async sandbox
8+
9+
# JS SDK
10+
# import { Sandbox } from 'e2b'
11+
# const sandbox = await Sandbox.create('vite-dynamic-sandbox')
12+
13+
team_id = "35f2ed91-a6af-4e6c-a693-9e9e244fcdbd"
14+
dockerfile = "e2b.Dockerfile"
15+
template_name = "vite-dynamic-sandbox"
16+
template_id = "sbv0xivbrwoi5ift78dg"

0 commit comments

Comments
 (0)