Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

🐳 Laravel CI Docker Image

Docker Pulls Docker Image Version Docker Image Size PHP Version Node Version


🚀 Overview

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.


✨ Tweaks:

  • Additional PHP extensions:

    • bcmath
    • gd
    • intl
    • exif
    • sqlite3
    • imagick
  • ImageMagick (for media libraries)

  • Xdebug + PCOV disabled (for faster tests)


📦 Usage

GitHub Actions

jobs:
  test:
    runs-on: ubuntu-latest
    container:
      image: x1bn/laravel-ci:php-8.4

⚠️ Notes

  • ❌ Not intended for production use
  • ✅ Optimized for CI pipelines

🧠 Why this image?

This image avoids:

  • Slow setup caused by using setup-php
  • Reinstalling extensions every run
  • Missing system dependencies

👉 Result: faster and more reliable pipelines


🔗 Repository

GitHub: https://github.com/xibn/laravel-ci-docker

Docker Hub: https://hub.docker.com/r/x1bn/laravel-ci


📄 License

This project is licensed under the MIT License.

About

Docker image for running Laravel tests via PestPHP.

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages