chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:47:58 +08:00
commit b16403ea71
789 changed files with 115226 additions and 0 deletions
@@ -0,0 +1 @@
FROM ubuntu:latest
@@ -0,0 +1,2 @@
template_id = "minimal-template"
dockerfile = "e2b.Dockerfile"
@@ -0,0 +1,15 @@
import asyncio
from e2b import AsyncTemplate, default_build_logger
from template import template
async def main():
await AsyncTemplate.build(
template,
"minimal-template-dev",
on_build_logs=default_build_logger(),
)
if __name__ == "__main__":
asyncio.run(main())
@@ -0,0 +1,15 @@
import asyncio
from e2b import AsyncTemplate, default_build_logger
from template import template
async def main():
await AsyncTemplate.build(
template,
"minimal-template",
on_build_logs=default_build_logger(),
)
if __name__ == "__main__":
asyncio.run(main())
@@ -0,0 +1,10 @@
from e2b import AsyncTemplate
template = (
AsyncTemplate()
.from_image("ubuntu:latest")
.set_user("root")
.set_workdir("/")
.set_user("user")
.set_workdir("/home/user")
)
@@ -0,0 +1,10 @@
from e2b import Template, default_build_logger
from template import template
if __name__ == "__main__":
Template.build(
template,
"minimal-template-dev",
on_build_logs=default_build_logger(),
)
@@ -0,0 +1,10 @@
from e2b import Template, default_build_logger
from template import template
if __name__ == "__main__":
Template.build(
template,
"minimal-template",
on_build_logs=default_build_logger(),
)
@@ -0,0 +1,10 @@
from e2b import Template
template = (
Template()
.from_image("ubuntu:latest")
.set_user("root")
.set_workdir("/")
.set_user("user")
.set_workdir("/home/user")
)
@@ -0,0 +1,10 @@
import { Template, defaultBuildLogger } from 'e2b'
import { template } from './template'
async function main() {
await Template.build(template, 'minimal-template-dev', {
onBuildLogs: defaultBuildLogger(),
});
}
main().catch(console.error);
@@ -0,0 +1,10 @@
import { Template, defaultBuildLogger } from 'e2b'
import { template } from './template'
async function main() {
await Template.build(template, 'minimal-template', {
onBuildLogs: defaultBuildLogger(),
});
}
main().catch(console.error);
@@ -0,0 +1,8 @@
import { Template } from 'e2b'
export const template = Template()
.fromImage('ubuntu:latest')
.setUser('root')
.setWorkdir('/')
.setUser('user')
.setWorkdir('/home/user')