Basic Structure
Base Images
Official Language Images
OS Images
Custom Images
Package Installation
Python (pip)
Node.js (npm)
Bun
System (apt)
File Operations
Copy Files
Create Directories
Commands
Configuration
Environment Variables
Working Directory
Default User
Startup Commands
Start Command
Ready Commands
Use helper functions for common readiness checks:Building Templates
Synchronous Build
Background Build
Build Logs
Build Options
| Option | Type | Default | Description |
|---|---|---|---|
alias | string | required | Template name |
cpu_count / cpuCount | number | 2 | Build CPU cores |
memory_mb / memoryMB | number | 1024 | Build memory (MB) |
skip_cache / skipCache | boolean | false | Skip build cache |
on_build_logs / onBuildLogs | function | - | Log callback |