Sign inSign up

newfuture/yaf

By newfuture

Updated about 8 years ago

mimimal yaf docker image include PHP YAF extension ,redis.so, memcached.so, pdo, mcrypt and so on

Image
11

10K+

newfuture/yaf repository overview

YAF-docker

最小PHP YAF的docker镜像

newfuture/yaf : the minimal docker image for yaf extension (default environment is dev )

Details

PHP YAF images based on alpine (the mini docker image which is about 1.8MB after compressed !)

all images:
include the latest php extensions:

Environment var

VARdefaultdescription
TIMEZONEUTCfor date.timezone setting ini php.ini
MAX_UPLOAD50Mupload_max_filesize setting
DISPLAY_ERROR1display_errors to show php errors
STARTUP_ERROR1display_startup_errors to display statrtup errors
ASSERTIONS0zend.assertions, only php7 supported: -1 close, 1 open

Usage

  • 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 exist public folder and not exist index.php ,use the public 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

Tag summary

Content type

Image

Digest

Size

12.2 MB

Last updated

about 8 years ago

docker pull newfuture/yaf