Laravel Docker Images for Gitlab CI/CD pipelines
Hi, this are my Docker Images that I personally use to run my Gitlab CI/CD Pipeline for Laravel Projects.
How To Build Images
- Make sure to only use PHP official Images using CLI Alpine Variant
- Specify a Node Version
- Build step is automatically done using github actions (WIP)
PHP 8.2 with Node 16 and Composer
docker build -t sean1999/laravel-ci:8.2 \
--build-arg BASE_PHP_IMAGE=php:8.2 \
--build-arg NODE_VERSION=16 \
--platform=linux/amd64 \
--no-cache Images/php
docker push sean1999/laravel-ci:8.2
PHP 8.1 with Node 16 and Composer
docker build -t sean1999/laravel-ci:8.1 \
--build-arg BASE_PHP_IMAGE=php:8.1 \
--build-arg NODE_VERSION=16 \
--platform=linux/amd64 \
--no-cache Images/php 2>&1 | tee Logs/8.1-build.log
docker push sean1999/laravel-ci:8.1
PHP 8.0 with Node 16 and Composer
docker build -t sean1999/laravel-ci:8.0 \
--build-arg BASE_PHP_IMAGE=php:8.0 \
--build-arg NODE_VERSION=16 \
--platform=linux/amd64 \
--no-cache Images/php
docker push sean1999/laravel-ci:8.0
Roadmap
- For now this repository only handles Laravel Projects but I will soon create a docker image that will also be perfect for Other Frameworks
- Svelte & Vue