Sign inSign up

clevyr/laravel-base-image-builder

By clevyr

Updated over 5 years ago

This image is deprecated in favor of clevyr/php.

Image
0

10K+

clevyr/laravel-base-image-builder repository overview

PHP Base Image

An enhanced version of the default PHP Docker image which can install PHP extensions without requiring manual dependency installation using mlocati/docker-php-extension-installer and installs a default nginx setup.

Pull Command

docker pull clevyr/php:<PHP version>

Build Arguments

Build ArgDescription
INSTALLPHP extensions to install. See here for available extensions.
DEPSapk dependencies to install during the build.
Nginx Configuration

Some nginx values can be configured as a build arg.

Build ArgNginx DirectiveDefault
NGINX_ROOTroot/app/public
NGINX_EXPIRESexpires7d
PHP Configuration

Some php.ini values can be configured as a build arg.

Build Argphp.ini DirectiveDefault
PHP_CONF_MAX_EXECUTION_TIMEmax_execution_time30
PHP_CONF_MAX_INPUT_VARSmax_input_vars1000
PHP_CONF_MEMORY_LIMITmemory_limit256M
PHP_CONF_POST_MAX_SIZEpost_max_size32M
PHP_CONF_UPLOAD_MAX_FILESIZEupload_max_filesize8M
Legacy Build Arguments

These are the legacy build args. They will still be supported for the forseeable future, but they are not as powerful as the new INSTALL build arg, so if you are creating an app from scratch, the INSTALL build arg may be more useful for you. These are also convenient because they group up some extensnions. For example, if you set INSTALL_MYSQL=true, then both mysqli and pdo_mysql will be installed.

Build ArgDefault
INSTALL_BCMATHtrue
INSTALL_CALENDARfalse
INSTALL_EXIFfalse
INSTALL_GDtrue
INSTALL_IMAGICKfalse
INSTALL_INTLfalse
INSTALL_MOSQUITTOfalse
INSTALL_MYSQLfalse
INSTALL_PGSQLtrue
INSTALL_REDISfalse
INSTALL_XDEBUGfalse
INSTALL_ZIPfalse

Tag summary

Content type

Image

Digest

Size

39.6 MB

Last updated

over 5 years ago

docker pull clevyr/laravel-base-image-builder