Skip to main content

Predefined image helpers

from_bun_image() requires an explicit Bun version and maps to oven/bun:<version>.

Existing templates and custom images

Dockerfile

Build from a Dockerfile on disk:
The TypeScript SDK builds Dockerfiles from inline content with fromDockerfileContent(...); it does not read a Dockerfile path for you.
Build from inline Dockerfile content:
Dockerfile builds use BuildKit. BuildKit-backed builds evaluate the Dockerfile, then import the resulting OCI image into a Nullspace rootfs and snapshot. build_backend="native" remains valid for non-Dockerfile declarative/OCI requests and historical build filters, but Dockerfile input with the native backend is rejected.

Compatibility

BuildKit-backed Dockerfile builds use BuildKit for upstream Dockerfile evaluation and then retain the resulting OCI runtime metadata during import. Docker’s BuildKit and Dockerfile references define the upstream behavior: BuildKit, Dockerfile reference, and build contexts.

OCI import

When a custom image or external Dockerfile FROM imports an OCI image, Nullspace imports these runtime defaults: Nullspace does not import stop signal, shell metadata, or arbitrary annotations into runtime config today. Special files such as sockets, FIFOs, block devices, character devices, sparse tar entries, and unknown tar entries are rejected.

Private registries

The TypeScript SDK does not expose private registry auth yet; use the Python SDK, CLI, or HTTP API for authenticated base-image pulls.
Helpers also exist for GCP Artifact Registry and AWS ECR.