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,
fsCapacityBytesOrOptions: number | CreateDockerfileSnapshotOptions,
options: CreateDockerfileSnapshotOptions = {}
): Promise<Snapshot>| Name | Type | Description |
|---|---|---|
name* | string | Snapshot name. |
dockerfile* | string | Local Dockerfile path, relative to context by default. |
fsCapacityBytesOrOptions | number | CreateDockerfileSnapshotOptions | Optional filesystem capacity in bytes, or build options. When omitted, the server applies its default capacity. |
options | CreateDockerfileSnapshotOptions | Default: {}Build options when capacity is passed separately. |