Download the PHP package blamebutton/laravel-docker-builder without Composer
On this page you can find all versions of the php package blamebutton/laravel-docker-builder. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download blamebutton/laravel-docker-builder
More information about blamebutton/laravel-docker-builder
Files in blamebutton/laravel-docker-builder
Download blamebutton/laravel-docker-builder
More information about blamebutton/laravel-docker-builder
Files in blamebutton/laravel-docker-builder
Vendor blamebutton
Package laravel-docker-builder
Short Description Production ready Docker files for Laravel
License MIT
Homepage https://github.com/blamebutton/laravel-docker-builder
Package laravel-docker-builder
Short Description Production ready Docker files for Laravel
License MIT
Homepage https://github.com/blamebutton/laravel-docker-builder
Please rate this library. Is it a good library?
Informations about the package laravel-docker-builder
Features
- Build Docker images using the Artisan CLI
- Detect PHP version and extensions
- Bundle assets with Vite.js or Laravel Mix
- Separate NGINX and PHP-FPM images
- Deployment examples for Kubernetes and Docker Compose
Installation
Usage
Detect Configuration
When --detect
is passed to the docker:generate
command, it will automatically detect the following requirements:
- PHP version, detected using the
php
version in yourcomposer.json
- PHP extensions, detected using the configuration of your project:
- Cache driver: Redis, Memcached, APC
- Database driver: MySQL, Postgres, SQL Server
- Broadcasting driver: Redis
- Queue driver: Redis
- Session driver: Redis, Memcached, APC
- Node package manager, detected using the existence of
package-lock.json
oryarn.lock
- Node build tool, detected using the existence of
vite.config.js
orwebpack.mix.js
Manual Configuration
When no options are passed to docker:generate
, a prompt is used to configure the project's requirements.
See all available options, and their supported values, by running php artisan docker:generate --help
.
-p, --php-version
- PHP version for Docker image-e, --php-extensions
- PHP extensions (comma-separated) to include in Docker image-o, --optimize
- Runphp artisan optimize
on container start-a, --alpine
- Use Alpine Linux based images-m, --node-package-manager
- Install Node dependencies using NPM or Yarn-b, --node-build-tool
- Run Vite.js or Laravel Mix build step
Configuration
Option 1: Config File
Option 2: .env
By default, the configuration file reads the following environment variables to determine the Docker image tags.
All versions of laravel-docker-builder with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.0
composer/semver Version ^3.3
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^9.0 | ^10.0
twig/twig Version ^3.0
composer/semver Version ^3.3
guzzlehttp/guzzle Version ^7.5
illuminate/contracts Version ^9.0 | ^10.0
twig/twig Version ^3.0
The package blamebutton/laravel-docker-builder contains the following files
Loading the files please wait ....