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,17 @@
import asyncio
from e2b import AsyncTemplate, default_build_logger
from template import template
async def main():
await AsyncTemplate.build(
template,
"start-cmd-dev",
cpu_count=2,
memory_mb=1024,
on_build_logs=default_build_logger(),
)
if __name__ == "__main__":
asyncio.run(main())
@@ -0,0 +1,17 @@
import asyncio
from e2b import AsyncTemplate, default_build_logger
from template import template
async def main():
await AsyncTemplate.build(
template,
"start-cmd",
cpu_count=2,
memory_mb=1024,
on_build_logs=default_build_logger(),
)
if __name__ == "__main__":
asyncio.run(main())
@@ -0,0 +1,16 @@
from e2b import AsyncTemplate
template = (
AsyncTemplate()
.from_image("python:3.11")
.set_user("root")
.set_workdir("/")
.set_workdir("/app")
.run_cmd("pip install --upgrade pip")
.run_cmd("pip install -r requirements.txt")
.set_envs({
"PYTHONUNBUFFERED": "1",
})
.set_user("user")
.set_start_cmd("sudo node server.js", "sleep 20")
)