/docker-laravel

Docker files for creating docker images with Laravel, Node and more.

Primary LanguageDockerfileMIT LicenseMIT

GitHub Action Build Docker Automated Badge Docker Build Badge Docker Image Size Badge Docker Pulls Badge

Docker image for Laravel with NodeJS and more

Build images are available at https://hub.docker.com/repository/docker/iamrgroot/laravel. See tags for versions used.

Build image

docker build . -t username/my-repo:tagname

Build options

Use with --build-arg

var default
PHP_VERSION 7.4-fpm
NODE_VERSION 10
IMAGICK true

Push to Docker Hub

docker login
docker push username/my-repo:tagname

Example

Example docker-compose.yml and .env files are available.