createSnapshotFromDockerfile(
name: string,
dockerfile: string,
fsCapacityBytes: number,
options: CreateDockerfileSnapshotOptions = {}
)| Name | Type | Description |
|---|---|---|
name* | string | |
dockerfile* | string | |
fsCapacityBytes* | number | |
options | CreateDockerfileSnapshotOptions | 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.