🐳 A slim, alpine-based PHP docker image that can be used to host and run a Laravel application
Clone or download



A docker image based on the official PHP alpine images with PHP extensions and tools installed to be ready to run laravel web servers or workers.


apk Packages

  • git
  • bash
  • supervisor
  • nginx (only for php-fpm images)
  • python
  • pip

PHP Extensions

  • phpredis
  • pdo
  • pdo_mysql
  • pdo_pgsql
  • mysqli
  • opcache
  • redis
  • pcntl
  • gd
  • bcmath
  • posix

pip Packages

  • awscli
  • s3cmd


  • composer
  • wait-for-it


The general workflow is as such:

  1. Update the Dockerfile.template as necessary.
  2. Run update.sh to update the PHP-type-specific Dockerfiles.
  3. Build and test locally (e.g. docker build -t carimus/laravel-alpine/test:php7.2-cli -f ./php7.2-cli/Dockerfile .)
  4. Add and commit the changes
  5. Run publish.sh to build all images and push them up to docker hub. This will overwrite existing images there so be sure the images are backwards compatible.