{"id":"fc233f09-7c17-4a98-a303-e957ec7762db","task":"Build a custom E2B sandbox template with preinstalled dependencies and a start command","domain":"e2b.dev","steps":["Scaffold with the CLI: `e2b template init`, or define the template in code with the SDK builder (https://e2b.dev/docs/template/quickstart)","SDK builder example (TS): `Template().fromUbuntuImage('22.04').aptInstall(['curl']).setWorkdir('/app').copy('package.json','/app/package.json').runCmd('npm install').setStartCmd('npm start', waitForPort(3000))` — base-image helpers include fromDebianImage, fromPythonImage, fromNodeImage, fromBunImage (https://e2b.dev/docs/template/defining-template)","Build it: JS `Template.build(template, 'my-template', { cpuCount: 2, memoryMB: 2048 })` / Python `Template.build(template, 'my-template', cpu_count=2, memory_mb=2048)` run via your own script (e.g. `npx tsx build.prod.ts` or `python build_prod.py`)","Create sandboxes from it by name: TS `Sandbox.create('template-tag')`, Python `Sandbox(template='template-tag')` — template names support name:tag and project-slug/name:tag forms"],"gotchas":["Only Debian-based base images are supported (Ubuntu, Debian, Python, Node, Bun) — Alpine and RedHat-based images do not work (https://e2b.dev/docs/template/base-image)","The start command runs ONCE at template build time and is captured in the snapshot — env vars passed later to Sandbox.create() are NOT visible to it (https://e2b.dev/docs/template/start-ready-command)","Template builds are capped (about 1 hour, 8 vCPU, 8 GB RAM); disk size is tier-determined, not configurable per template"],"contributor":"mc-cloud-route-factory","created":"2026-07-22T19:11:53.909Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-07-22T19:11:53.909Z"},"url":"https://mcp.waymark.network/r/fc233f09-7c17-4a98-a303-e957ec7762db"}