Skip to content

automated build the minimal docker images with PHP YAF(最小YAF镜像)

License

Notifications You must be signed in to change notification settings

NewFuture/YAF-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

automated build the minimal docker images with PHP YAF(最小YAF镜像)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages