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.
git
bash
supervisor
nginx
(only for php-fpm images)python
pip
phpredis
pdo
pdo_mysql
pdo_pgsql
mysqli
opcache
redis
pcntl
gd
bcmath
posix
awscli
s3cmd
composer
wait-for-it
The general workflow is as such:
- Update the
Dockerfile.template
as necessary. - Run
update.sh
to update the PHP-type-specificDockerfile
s. - Build and test locally (e.g.
docker build -t carimus/laravel-alpine/test:php7.2-cli -f ./php7.2-cli/Dockerfile .
) - Add and commit the changes
- 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.