Build configuration examples for testing and documentation: - build-minimal.yaml - Auto-detect everything - build-go-cli.yaml - Cross-platform CLI - build-go-wails.yaml - Desktop app with frontend - build-go-library.yaml - Library (no binary) - build-docker.yaml - Multi-arch container - build-docker-go.yaml - Go binary + Docker - build-linuxkit.yaml - Immutable Linux images - build-php-laravel.yaml - FrankenPHP + Laravel - build-multi-binary.yaml - Multiple binaries - build-full.yaml - All available options Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
50 lines
816 B
YAML
50 lines
816 B
YAML
# Example: PHP/Laravel Build Configuration
|
|
# FrankenPHP container with Laravel app
|
|
|
|
version: 1
|
|
|
|
project:
|
|
name: mylaravel
|
|
type: php
|
|
|
|
php:
|
|
version: "8.4"
|
|
|
|
# Composer settings
|
|
composer:
|
|
install_args:
|
|
- --no-dev
|
|
- --optimize-autoloader
|
|
- --no-interaction
|
|
|
|
# Frontend build
|
|
frontend:
|
|
enabled: true
|
|
build_cmd: "npm run build"
|
|
|
|
# Octane configuration
|
|
octane:
|
|
server: frankenphp
|
|
workers: auto
|
|
max_requests: 500
|
|
|
|
# Docker output
|
|
docker:
|
|
dockerfile: Dockerfile
|
|
registry: ghcr.io
|
|
image: myorg/mylaravel
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
tags:
|
|
- latest
|
|
- "{{.Version}}"
|
|
build_args:
|
|
PHP_VERSION: "8.4"
|
|
|
|
# Optional: LinuxKit for immutable deployment
|
|
linuxkit:
|
|
config: .core/linuxkit/server-php.yml
|
|
formats:
|
|
- qcow2
|
|
- iso
|