/docker-php7-fpm

🏋 Lightweight Docker Image for PHP7 (cli&fpm) based on alpine

#🏋 Lightweight Docker Image for PHP7 (cli&fpm) Build Status

This PHP docker image based on Alpine. Alpine is based on Alpine Linux, lightweight Linux distribution based on BusyBox. The size of the image is very small, less than 70 MB!

Images

Getting The Image

This image is published in the Docker Hub. Simply run this command below to get it to your machine.

PHP Configuration

The config is set using environments

#default values
PHP_MEMORY_LIMIT=256M
PHP_ERROR_REPORTING=E_ALL
PHP_DISPLAY_ERRORS=Off
PHP_DISPLAY_STARTUP_ERRORS=Off
PHP_POST_MAX_SIZE=20M
PHP_MAX_UPLOAD_FILESIZE=10M
PHP_MAX_FILE_UPLOADS=20
PHP_DATE_TIMEZONE=Europe/Minsk
PHP_VARIABLES_ORDER=EGPCS
PHP_OPCACHE_ENABLE=1
PHP_OPCACHE_ENABLE_CLI=0
PHP_OPCACHE_MEMORY_CONSUMPTION=256
PHP_OPCACHE_INTERNED_STRINGS_BUFFER=32
PHP_OPCACHE_MAX_ACCELERATED_FILES=100000
PHP_OPCACHE_USE_CWD=0
PHP_OPCACHE_VALIDATE_TIMESTAMPS=1
PHP_OPCACHE_REVALIDATE_FREQ=2
PHP_OPCACHE_ENABLE_FILE_OVERRIDE=1
PHP_OPCACHE_MEMORY_CONSUMPTION = 256 
PHP_OPCACHE_INTERNED_STRINGS_BUFFER = 32 
PHP_OPCACHE_MAX_ACCELERATED_FILES = 100000 
PHP_OPCACHE_USE_CWD = 0 
PHP_OPCACHE_VALIDATE_TIMESTAMPS = 1 
PHP_OPCACHE_REVALIDATE_FREQ = 2 
PHP_OPCACHE_ENABLE_FILE_OVERRIDE = 1

PHP Modules

amqp
bcmath
bz2
Core
ctype
curl
date
dom
fileinfo
filter
gd
gettext
gmp
hash
iconv
json
libxml
mbstring
mcrypt
memcached
mongodb
mysqli
odbc
openssl
pcntl
pcre
PDO
pdo_dblib
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
redis
Reflection
session
SimpleXML
soap
SPL
sqlite3
standard
tokenizer
xdebug
xml
xmlreader
xmlrpc
xmlwriter
Zend OPcache
zip

[Zend Modules]
Zend OPcache