You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: update documentation with comprehensive project details
- Enhanced Copilot instructions with detailed build process, PHP configuration, and extensions
- Added complete documentation for dual image types (distroless + base images)
- Updated README with multi-version support details (PHP 8.1-8.4)
- Documented Composer and Xdebug availability in base images
- Clarified CI/CD pipeline architecture and workflow dependencies
- Added comprehensive extension lists and Swoole version specifications
*Note: Base images are available for all PHP versions (8.1-base, 8.2-base, 8.3-base, 8.4-base) and include Composer and Xdebug for development workflows.*
36
58
37
59
## Building
38
60
39
61
Images are automatically built and published via GitHub Actions using pre-compiled PHP binaries from [static-php-cli](https://github.com/crazywhalecc/static-php-cli). The build process uses multi-architecture Docker builds to support both AMD64 and ARM64 platforms.
40
62
41
63
### CI/CD Pipeline
42
64
43
-
The project uses a multi-stage GitHub Actions pipeline:
65
+
The project uses a two-stage GitHub Actions pipeline:
44
66
45
67
1.**PHP Build** (`php.yml`): Builds static PHP binaries for both architectures
-Currently builds PHP 8.3 images (configurable via matrix strategy)
110
+
-Builds all PHP versions (8.1, 8.2, 8.3, 8.4) for both image types
92
111
- Pushes to GitHub Container Registry with appropriate tags
93
112
94
113
## How it Works
95
114
96
115
This project combines static PHP binaries with Google's Distroless base images to create minimal, secure PHP runtime containers:
97
116
98
-
1.**Static PHP Binaries**: Pre-compiled PHP binaries from [static-php-cli](https://github.com/crazywhalecc/static-php-cli) are built with 60+ extensions for multiple PHP versions (8.1, 8.2, 8.3, 8.4)
117
+
1.**Static PHP Binaries**: Pre-compiled PHP binaries from [static-php-cli](https://github.com/crazywhalecc/static-php-cli)v2.6.1 are built with 60+ extensions for multiple PHP versions (8.1, 8.2, 8.3, 8.4)
99
118
2.**Multi-arch Build**: Docker build process uses architecture-specific binaries (AMD64 or ARM64) via build arguments (PHPVERSION and TARGETARCH)
100
119
3.**Distroless Base**: Uses `gcr.io/distroless/cc-debian12:nonroot` for minimal attack surface and runs as non-root user
101
-
4.**No OS**: Final images contain only the PHP binary and distroless base - no package managers, shells, or unnecessary tools
120
+
4.**Base Images**: Debian 12.11-based images with Composer 2.8 and Xdebug for development workflows
121
+
5.**No OS**: Final distroless images contain only the PHP binary and distroless base - no package managers, shells, or unnecessary tools
102
122
103
123
### Included PHP Extensions
104
124
@@ -109,54 +129,17 @@ The PHP binaries include 60+ extensions:
0 commit comments