LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
LangSmith
  • Client
  • Run Trees
  • Traceable
  • Evaluation
  • Schemas
  • Langchain
  • Jest
  • Vitest
  • Wrappers
  • Anonymizer
  • Jestlike
  • Vercel
  • Anthropic
  • Sandbox
⌘I

LangChain Assistant

Ask a question to get started

Enter to send•Shift+Enter new line

Menu

LangSmith
ClientRun TreesTraceableEvaluationSchemasLangchainJestVitestWrappersAnonymizerJestlikeVercelAnthropicSandbox
Language
Theme
JavaScriptlangsmithsandboxSandboxClientcreateSnapshotFromDockerfile
Method●Since v0.8

createSnapshotFromDockerfile

Copy
createSnapshotFromDockerfile(
  name: string,
  dockerfile: string,
  fsCapacityBytes: number,
  options: CreateDockerfileSnapshotOptions = {}
)
View source on GitHub
:
Promise
<
Snapshot
>

Parameters

NameTypeDescription
name*string
dockerfile*string
fsCapacityBytes*number
optionsCreateDockerfileSnapshotOptions
Default:{}

Build a snapshot from a local Dockerfile context.

Creates a temporary builder sandbox, uploads the Docker build context, runs BuildKit inside the sandbox, and captures the built image as a LangSmith snapshot.

Snapshot name.

Local Dockerfile path, relative to context by default.

Filesystem capacity in bytes.

Build context, args, target, build log callback, builder vCPUs/memory, timeout.