Optimized Docker image based on shivammathur/node for running Laravel tests via PestPHP with:
- ⚡ Fast startup (no setup-php needed)
- 🧪 PestPHP-focused (Xdebug and PCOV disabled)
- 📦 Composer preinstalled
- 🟢 Node.js included (for Vite builds)
- 🧩 Additional PHP extensions preinstalled
Designed specifically for GitHub Actions / CI environments.
-
Additional PHP extensions:
bcmathgdintlexifsqlite3imagick
-
ImageMagick (for media libraries)
-
Xdebug + PCOV disabled (for faster tests)
jobs:
test:
runs-on: ubuntu-latest
container:
image: x1bn/laravel-ci:php-8.4- ❌ Not intended for production use
- ✅ Optimized for CI pipelines
This image avoids:
- Slow setup caused by using setup-php
- Reinstalling extensions every run
- Missing system dependencies
👉 Result: faster and more reliable pipelines
GitHub: https://github.com/xibn/laravel-ci-docker
Docker Hub: https://hub.docker.com/r/x1bn/laravel-ci
This project is licensed under the MIT License.