{"id":15424873,"url":"https://github.com/newfuture/yaf-docker","last_synced_at":"2025-04-19T16:14:43.592Z","repository":{"id":108701916,"uuid":"69662484","full_name":"NewFuture/YAF-docker","owner":"NewFuture","description":"automated build the minimal docker images with PHP YAF(最小YAF镜像)","archived":false,"fork":false,"pushed_at":"2019-04-21T15:05:58.000Z","size":9573,"stargazers_count":9,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T10:01:37.741Z","etag":null,"topics":["alpine-image","docker","yaf"],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/newfuture/yaf/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NewFuture.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-09-30T11:49:22.000Z","updated_at":"2024-01-28T13:20:55.000Z","dependencies_parsed_at":"2023-06-28T15:15:44.047Z","dependency_job_id":null,"html_url":"https://github.com/NewFuture/YAF-docker","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewFuture%2FYAF-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewFuture%2FYAF-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewFuture%2FYAF-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NewFuture%2FYAF-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NewFuture","download_url":"https://codeload.github.com/NewFuture/YAF-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249735193,"owners_count":21318002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alpine-image","docker","yaf"],"created_at":"2024-10-01T17:49:08.634Z","updated_at":"2025-04-19T16:14:43.557Z","avatar_url":"https://github.com/NewFuture.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YAF-docker\n最小PHP YAF的docker镜像\n[![](https://images.microbadger.com/badges/version/newfuture/yaf.svg)](https://hub.docker.com/r/newfuture/yaf/) [![](https://images.microbadger.com/badges/image/newfuture/yaf.svg)](https://microbadger.com/images/newfuture/yaf \"datails\")\n\n`newfuture/yaf` : the minimal docker image for yaf extension (default environment is dev )\n\n## Details \n\nPHP YAF images based on alpine (the mini docker image which is about 1.8MB after compressed !)\n\n\n### all images:\n\n* [![](https://images.microbadger.com/badges/image/newfuture/yaf:php7.svg)](https://microbadger.com/images/newfuture/yaf:php7) [`php7` (latest)](https://github.com/NewFuture/YAF-docker/tree/docker/php5/cli/)\n* [![](https://images.microbadger.com/badges/image/newfuture/yaf:fpm-php7.svg)](https://microbadger.com/images/newfuture/yaf:fpm-php7) [`fpm-php7`](https://github.com/NewFuture/YAF-docker/blob/docker/php7/fpm/)\n* [![](https://images.microbadger.com/badges/image/newfuture/yaf:php5.svg)](https://microbadger.com/images/newfuture/yaf:php5) [`php5`](https://github.com/NewFuture/YAF-docker/tree/docker/php5/cli/)\n* [![](https://images.microbadger.com/badges/image/newfuture/yaf:fpm-php5.svg)](https://microbadger.com/images/newfuture/yaf:fpm-php5) [`fpm-php5`](https://github.com/NewFuture/YAF-docker/blob/docker/php7/fpm/)\n\n### include the latest php extensions:\n- [YAF](https://github.com/laruence/yaf)\n- [php-memcached](https://pecl.php.net/package/memcached)\n- [php-redis](https://pecl.php.net/package/redis)\n- PDO-*\n- mcrypt\n- curl\n- gd\n\n## Environment var\n\n| VAR | default | description |\n| --- | --- | --- |\n| `TIMEZONE` | UTC | for `date.timezone` setting ini php.ini |\n|`MAX_UPLOAD` | 50M | `upload_max_filesize` setting |\n|`DISPLAY_ERROR`| 1 | `display_errors` to show php errors |\n|`STARTUP_ERROR`| 1 | `display_startup_errors` to display statrtup errors|\n|`ASSERTIONS` | 0 | `zend.assertions`, only php7 supported: -1 close, 1 open|\n\n## Usage\n\n* pull image\n```\ndocker pull newfuture/yaf\ndocker pull newfuture/yaf:fpm\n```\n* 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)\n```bash\ndocker run -it --rm -p 1122:80 -v \"`pwd`\":/yaf newfuture/yaf\n```\n* run in background\n```bash\ndocker run -d -p 1122:80 -v \"`pwd`\":/yaf newfuture/yaf\n```\n* using php5\n```bash\ndocker run -it --rm -p 1122:80 -v \"`pwd`\":/yaf newfuture/yaf:php5\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewfuture%2Fyaf-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnewfuture%2Fyaf-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnewfuture%2Fyaf-docker/lists"}