Build Configuration
The build section in pilum.yaml defines how your application is compiled.
Basic Structure
build: language: go version: "1.23" cmd: "go build -o ./dist/app ." env_vars: CGO_ENABLED: "0"Fields
| Field | Type | Description |
|---|---|---|
language | string | Programming language (go, python, rust, node) |
version | string | Language version |
cmd | string | Build command to execute |
env_vars | map | Environment variables for build |
Language Examples
Go
build: language: go version: "1.23" cmd: "go build -o ./dist/app ." env_vars: CGO_ENABLED: "0"Python
build: language: python version: "3.12" cmd: "pip install -r requirements.txt"Node.js
build: language: node version: "20" cmd: "npm run build" env_vars: NODE_ENV: productionCustom Build Commands
Use any build command:
build: language: go version: "1.23" cmd: "make build"Or a shell script:
build: language: go version: "1.23" cmd: "./scripts/build.sh"Next Steps
- Service Configuration — Full pilum.yaml reference
- How Recipes Work — Understand build steps