项目作者: NewFuture

项目描述 :
automated build the minimal docker images with PHP YAF(最小YAF镜像)
高级语言: Shell
项目地址: git://github.com/NewFuture/YAF-docker.git
创建时间: 2016-09-30T11:49:22Z
项目社区:https://github.com/NewFuture/YAF-docker

开源协议:Other

下载


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
    1. docker pull newfuture/yaf
    2. 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)
    1. docker run -it --rm -p 1122:80 -v "`pwd`":/yaf newfuture/yaf
  • run in background
    1. docker run -d -p 1122:80 -v "`pwd`":/yaf newfuture/yaf
  • using php5
    1. docker run -it --rm -p 1122:80 -v "`pwd`":/yaf newfuture/yaf:php5