This Dockerfile builds an image to support Laravel to run.
- Debian stretch
- PHP-FPM 7.2
- PHP extensions: mongodb, postgres, pdo and more...
- Xdebug
- Composer
- NPM
- NodeJS
Note: MySQL PDO is not supported in this image
Make sure you're at this Dockerfile's root.
docker build -t laravel-php .
If you want to customize php.ini
, place your php.ini
in /usr/local/etc/php/
.
- Use Alpine Linux instead of Debian to reduce image size.
- Support MySQL PDO
- ...