newfuture/yaf
: the minimal docker image for yaf extension (default environment is dev )
PHP YAF images based on alpine (the mini docker image which is about 1.8MB after compressed !)
- YAF
- php-memcached
- php-redis
- PDO-*
- mcrypt
- curl
- gd
VAR | default | description |
---|---|---|
TIMEZONE |
UTC | for date.timezone setting ini php.ini |
MAX_UPLOAD |
50M | upload_max_filesize setting |
DISPLAY_ERROR |
1 | display_errors to show php errors |
STARTUP_ERROR |
1 | display_startup_errors to display statrtup errors |
ASSERTIONS |
0 | zend.assertions , only php7 supported: -1 close, 1 open |
- pull image
docker pull newfuture/yaf
docker pull newfuture/yaf:fpm
- run your yaf app : replace
"/PATH/OF/YAF/APP/"
with your app path , and it will auto detect public path (if existpublic folder
and not existindex.php
,use thepublic
as web root)
docker run -it --rm -p 1122:80 -v "`pwd`":/yaf newfuture/yaf
- run in background
docker run -d -p 1122:80 -v "`pwd`":/yaf newfuture/yaf
- using php5
docker run -it --rm -p 1122:80 -v "`pwd`":/yaf newfuture/yaf:php5