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.
createSnapshotFromDockerfile(
name: string,
dockerfile: string,
fsCapacityBytes: number,
options: CreateDockerfileSnapshotOptions = {}
): Promise<Snapshot>| Name | Type | Description |
|---|---|---|
name* | string | Snapshot name. |
dockerfile* | string | Local Dockerfile path, relative to context by default. |
fsCapacityBytes* | number | Filesystem capacity in bytes. |
options | CreateDockerfileSnapshotOptions | Default: {}Build context, args, target, build log callback, builder vCPUs/memory, timeout. |