Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 2.42 KB

README.md

File metadata and controls

56 lines (45 loc) · 2.42 KB

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

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

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