Conversation
|
|
|
||
| RUN groupadd --gid 1000 node \ | ||
| && useradd --uid 1000 --gid node --shell /bin/bash --create-home node | ||
| RUN groupadd -r node && useradd -r -g node -s /bin/bash -m node |
There was a problem hiding this comment.
this was edited because I was getting:
groupadd: GID '1000' already exists
| # const sandbox = await Sandbox.create('base') | ||
|
|
||
| team_id = "460355b3-4f64-48f9-9a16-4442817f79f5" | ||
| memory_mb = 512 |
There was a problem hiding this comment.
the memory setup should be explicitly set as the defaults can change
| import { defaultBuildLogger, Template } from '../../packages/js-sdk/src' | ||
| import { template, alias } from './template' | ||
|
|
||
| await Template.build(template, { |
There was a problem hiding this comment.
the base template is already built in the Infra repo. I think we might want to have here only the Docker image build, no template at all
I haven't modified the source for compatibility reasons, so it can still be released as a Docker image
Note
Switches the base template to JS SDK-driven builds (dev/prod), adds package.json and template config, updates Dockerfile user creation, and removes e2b.toml.
build.dev.tsandbuild.prod.tsusingTemplate.buildwithdefaultBuildLogger()and alias handling.template.tsexportingalias: 'base'andTemplate().fromDockerfile('e2b.Dockerfile'); addpackage.jsonwithbuild:devandbuild:prodscripts.groupadd -r/useradd -r).e2b.toml.Written by Cursor Bugbot for commit 6f55a51. This will update automatically on new commits. Configure here.