runtime_images_build
Build a sandbox image with your dependencies preinstalled, from exactly one of: image (a public or private image such as python:3.12-slim or ghcr.io/you/app:1), dockerfile (any Dockerfile: multi-stage, COPY --from, ARG, heredocs; COPY reads files), or recipe ({base, apt, pip, npm, commands, files, env}). Each build of a name is its next version, tagged latest (or tags). start sets what a sandbox from it runs and when its create answers; a Dockerfile's CMD and HEALTHCHECK fill it in. Returns the image queued; runtime_images action get says when it is ready, and sandboxes start from its id or name:tag. A rebuild reuses unchanged steps.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Environment every sandbox from it starts with. | |
| name | No | Your handle for it; each build is its next version. | |
| tags | No | Tags it takes when ready; default latest. | |
| build | No | {vcpu?, memoryMiB?, diskMiB?, maxImageMiB?, timeoutSeconds?, cacheMiB?} for the build. | |
| cache | No | false builds every step afresh. | |
| files | No | The Dockerfile's context: [{path, content, encoding?: utf8 or base64, mode?}], 1 MiB in all. | |
| image | No | An image, such as python:3.12-slim. | |
| start | No | {command | argv, cwd?, env?, readyPort? | readyCommand?, readyTimeoutSeconds?}: run as a sandbox starts; its create waits until ready. | |
| labels | No | ||
| recipe | No | {base?, apt?, pip?, npm?, commands?, files?, env?, workdir?}: packages and steps on Runtime's base or an image. | |
| region | No | ||
| target | No | A stage to build instead of the last. | |
| buildArgs | No | ||
| dockerfile | No | A Dockerfile, multi-stage allowed; COPY reads files. | |
| dockerignore | No | ||
| idempotencyKey | No | Optional: left out, one is made and returned as idempotencyKey. Send it back only to retry this exact call after a temporary error. |