Image instance.Image.base()1234567import { Image } from "@opencomputer/sdk"; const image = Image.base() .aptInstall(['curl', 'jq']) .pipInstall(['requests', 'pandas']) .env({ PROJECT_ROOT: '/workspace' }) .workdir('/workspace');
Imageimage.aptInstall(packages)body packagesstring[]requiredImageimage.pipInstall(packages)body packagesstring[]requiredImageimage.runCommands(...cmds)body cmdsstring[]requiredImageimage.env(vars)body varsRecord<string, string>requiredImageimage.workdir(path)body pathstringrequiredImageimage.addFile(remotePath, content)body remotePathstringrequiredbody contentstringrequiredImageimage.addLocalFile(localPath, remotePath)body localPathstringrequiredbody remotePathstringrequiredImageimage.addLocalDir(localPath, remotePath)body localPathstringrequiredbody remotePathstringrequiredImageimage.builderMemory(mb)apt/pip/npm). Defaults to 4096. Does not affect the resulting
sandbox's memory — size that at create time via memoryMB.body mbnumberrequiredImageimage.toJSON()ImageManifestimage.cacheKey()string