[
  {
    "path": ".editorconfig",
    "content": "# http://editorconfig.org\n\nroot = true\n\n[*]\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true\n\n[*.md]\ntrim_trailing_whitespace = false\n\n[{docker/hooks/build,docker/hooks/post_push}]\nindent_style = space\nindent_size = 4\n\n[docker/*.Dockerfile]\nindent_style = space\nindent_size = 4\n\n[*.yml]\nindent_style = space\nindent_size = 2\n\n[Makefile]\nindent_style = space\nindent_size = 2\ntrim_trailing_whitespace = false\n\n[APKBUILD]\nindent_style = space\nindent_size = 2\n\n[*.patch]\ntrim_trailing_whitespace = unset\nend_of_line = unset\ninsert_final_newline = unset\n"
  },
  {
    "path": ".github/CODE_OF_CONDUCT.md",
    "content": "# Code of conduct\n\nThis project is part of the [PHP.earth](https://php.earth) group which follows a\n[code of conduct](https://conduct.php.earth) to guarantee a welcoming, safe,\ninclusive, and harassment-free environment for anyone.\n"
  },
  {
    "path": ".github/CONTRIBUTING.md",
    "content": "# Contributing guide\n\nContributions are most welcome. Below is described procedure for contributing to\nthis repository.\n\n* Fork this repository over GitHub\n* Create a separate branch, for instance `patch-1` so you will not need to rebase\n  your fork if your master branch is merged\n\n  ```bash\n  git clone git@github.com:your_username/docker-php\n  cd docker-php\n  git checkout -b patch-1\n  ```\n* Make changes, commit them and push to your fork\n\n  ```bash\n  git add .\n  git commit -m \"Fix bug\"\n  git push origin patch-1\n  ```\n* Open a pull request\n\n## Style guide\n\n* This repository uses [Markdown](https://daringfireball.net/projects/markdown/)\n  syntax and follows\n  [cirosantilli/markdown-style-guide](http://www.cirosantilli.com/markdown-style-guide/)\n  style guide.\n\n## GitHub issues labels\n\nLabels are used to organize issues and pull requests into manageable categories.\nThe following labels are used:\n\n* **bug** - Attached when bug is reported.\n* **duplicate** - Attached when the same issue or pull request already exists.\n* **enhancement** - Attached when creating a new feature.\n* **invalid** - Attached when the issue or pull request does not correspond with\n  scope of the repository or because of some inconsistency.\n* **question** - Attached for questions or discussions.\n* **wontfix** - Attached when decided that issue will not be fixed.\n\n## Release process\n\n*(For repository maintainers)*\n\nThis repository follows [semantic versioning](http://semver.org/). When source\ncode changes, new features are implemented, or PHP version gets upgraded, a new\nversion (e.g. 1.x.y) is released by the following release process:\n\n* **1. Tests**\n\n  Tests are run with [Goss](https://github.com/aelsabbahy/goss):\n\n  ```bash\n  make test [t=\"<test-folder-1> <test-folder-2> ...\"]\n  ```\n\n* **2. Update changelog**\n\n  Create an entry in [CHANGELOG.md](/CHANGELOG.md) describing all the changes\n  from previous release.\n\n* **3. Docker images**\n\n  Build and push Docker images to [Docker Hub](https://hub.docker.com/r/phpearth/php/).\n\n  ```bash\n  make build-and-push\n  ```\n"
  },
  {
    "path": ".travis.yml",
    "content": "sudo: required\n\nservices:\n  - docker\n\nbefore_install:\n  # install goss\n  - curl -L https://goss.rocks/install | sudo sh\n\nscript:\n  - cd tests && ./test\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# Changelog\n\nAll notable changes to this project will be documented in this file. This project\n[keeps a CHANGELOG](http://keepachangelog.com/) based on the time changes.\n\n## 2019-05-10\n\n* PHP 7.4.0-dev\n\n## 2018-12-06\n\n* PHP 7.3.0\n\n## 2018-10-24\n\n* PHP 7.3.0RC4\n* PHP 7.2.11\n* PHP 7.1.23\n\n## 2018-09-25\n\n* Alpine 3.8.1 base image update\n\n## 2018-09-13\n\n* PHP 7.3.0RC1\n* PHP 7.2.10\n* PHP 7.1.22\n* PHP 7.0.32\n\n## 2018-09-06\n\n* PHP 7.3.0beta3\n* PHP 7.2.9\n* PHP 7.1.21\n\n## 2018-07-21\n\n* Alpine 3.8\n* PHP 7.0.31\n* PHP 7.1.19\n* PHP 7.2.8\n* PHP 7.3.0 alpha 4\n\n## 2018-06-22\n\n* PHP 7.3 images\n* PHP 7.2.7\n\n## 2018-06-21\n\n* Repository moved to github.com/phpearth\n* PHP 7.2.4\n* PHP 7.1.16\n* PHP 7.0.29\n* OpenLiteSpeed 1.5.0 RC 2 r101\n* PHP 7.2.3 r101\n* PHP 7.2.3\n* PHP 7.0.28\n* PHP 7.1.15\n* OpenLiteSpeed 1.5.0 RC2\n* OpenLiteSpeed 1.4.29\n* PHP 7.1.14\n* PHP 7.2.2\n\n## 2018-02-01\n\n* PHP 7.0.27\n* PHP 7.1.13\n* PHP 7.2.1\n\n## 2018-01-03\n\n* Alpine 3.7\n* PHP 7.2.0 stable\n* Fix OpenLiteSpeed images to run the server properly\n* Expose important web server ports in Docker images\n* New Lighttpd web server images\n\n## 2017-11-22\n\n* PHP 7.2.0RC6\n* PHP 7.1.12\n* PHP 7.0.26\n* OpenLiteSpeed 1.4.28\n\n## 2017-10-29\n\n* Add phar extension to all Docker images except minimal ones.\n* Use PHP.earth Alpine packages with custom compiler optimization flags.\n\n## 2017-10-25\n\n* PHP 7.2.0RC5\n* PHP 7.1.11\n* PHP 7.0.25\n* New images with only PHP CLI from PHP.earth Alpine repos\n* Alpine repository moved to its own [location](https://github.com/php-earth/alpine)\n  and repository folder structure refactored\n\n## 2017-10-01\n\n* Refactored PHP APKBUILD files\n* PHPUnit 6.3.1\n* Fixed bug with PHP bundled libgd not working with provided GNU libiconv package:\n  ```\n  PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/7.1/modules/gd.so' - Error relocating /usr/lib/php/7.1/modules/gd.so: libiconv: symbol not found in Unknown on line )\n  ```\n* PHP 7.0.24\n* PHP 7.1.10\n* PHP 7.2.0RC3\n* Swoole 1.9.21\n* PECL Libsodium 2.0.8\n* PECL Redis 3.1.4\n* [Apache bug fixed](https://github.com/php-earth/docker-php/issues/4)\n\n## 2017-09-20\n\n* Swoole 1.9.20\n* OpenLiteSpeed 1.4.27\n* PHP 7.2.0 RC2\n* PHP 7.1.9\n* PHP 7.0.23\n* MongoDB 1.3.0\n* Composer 1.5.2\n* [iconv bug fix](https://github.com/php-earth/docker-php/issues/3)\n\n## 2017-08-14\n\n* Refactor and fix multiple issues with Alpine repository packages\n* Swoole 1.9.18\n* PHPUnit 6.3.0\n* Composer 1.5.1\n* PHP 7.2.0 beta 2\n* PHP 7.1.8\n* PHP 7.0.22\n* New tests\n\n## 2017-07-06\n\n* Debian based images removed in favor of Alpine for smallest possible sizes\n* Introducing PHP.earth Alpine repository\n\n## 2017-06-20\n\n* Apache HTTP Server\n* PHP CGI\n* Refactored and stabilized Docker tags\n* Improved documentation\n* Tests\n\n## 2017-06-12\n\n* Repository location refactored\n* PEAR removed\n* PHP 7.2.0alpha1\n* Composer installation script with optional prestissimo plugin\n\n## 2017-06-03\n\n* OpenLiteSpeed 1.4.26\n* New tag added for OpenLiteSpeed on Alpine\n* Use `-O3` optimization level for GCC when compiling PHP\n* Move intl, xsl and gettext PHP extensions to installation script\n* Optimize Debian images size\n\n## 2017-05-29\n\n* Improved script for downloading PHP extensions\n* Fixed minor bug in script for downloading Composer\n* Removed bash from Alpine Docker images\n* Refactor Dockerfiles\n* PHP GD extension moved to installation script\n\n## 2017-05-27\n\n* Refactored Docker tags\n* Upgraded to Alpine 3.6 base images\n* Installation script for Composer and Prestissimo plugin for parallel downloading\n  of PHP packages\n\n## 2017-05-13\n\n* Repository refactored\n* PHP 7.1.5\n\n## 2017-04-13\n\n* PHP 7.1.4\n\n## 2017-04-01\n\n* Xdebug extension\n\n## 2017-04-01\n\n* Fixed OpenLiteSpeed installation dependencies\n\n## 2017-04-01\n\n* Added support for multiple PHP extensions\n* Documentation improvements\n* Composer removed from base images\n\n## 2017-03-31\n\n* xmlrpc support\n* postgresql and pdo_pgsql support\n* gmp support\n* recode support\n\n## 2017-03-28\n\n* The imagick PECL extension support\n\n## 2017-03-27\n\n* The memcached extension support\n\n## 2017-03-21\n\n* Tidy extension support\n* WDDX extension support\n\n## 2017-03-20\n\n* Initial release with PHP 7.1.3\n"
  },
  {
    "path": "LICENSE",
    "content": "Copyright (c) 2016-present PHP.earth\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is furnished\nto do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n"
  },
  {
    "path": "Makefile",
    "content": ".RECIPEPREFIX := $(.RECIPEPREFIX) \n.DEFAULT_GOAL := help\n.PHONY: *\n\nhelp:\n  @echo \"\\033[33mUsage:\\033[0m\\n  make [target] [arg=\\\"val\\\"...]\\n\\n\\033[33mTargets:\\033[0m\"\n  @grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = \":.*?## \"}; {printf \"  \\033[32m%-15s\\033[0m %s\\n\", $$1, $$2}'\n\ntest: ## Run all tests; Usage: make test [t=\"<test-folder-1> <test-folder-2> ...\"]\n  @cd tests; \\\n  ./test \"$(t)\"\n\nbuild: ## Build image. Usage: make build TAG=\"7.0-cli\"\n  @docker build --no-cache --build-arg BUILD_DATE=`date -u +\"%Y-%m-%dT%H:%M:%SZ\"` --build-arg VCS_REF=`git rev-parse --short HEAD` -t phpearth/php:$(TAG) -f docker/$(TAG).Dockerfile docker\n\nbuild-70: ## Build PHP 7.0 images\n  make build TAG=\"7.0\"\n  make build TAG=\"7.0-apache\"\n  make build TAG=\"7.0-cgi\"\n  make build TAG=\"7.0-cli\"\n  make build TAG=\"7.0-lighttpd\"\n  make build TAG=\"7.0-litespeed\"\n  make build TAG=\"7.0-nginx\"\n\nbuild-71: ## Build PHP 7.1 images\n  make build TAG=\"7.1\"\n  make build TAG=\"7.1-apache\"\n  make build TAG=\"7.1-cgi\"\n  make build TAG=\"7.1-cli\"\n  make build TAG=\"7.1-lighttpd\"\n  make build TAG=\"7.1-litespeed\"\n  make build TAG=\"7.1-nginx\"\n\nbuild-72: ## Build PHP 7.2 images\n  make build TAG=\"7.2\"\n  make build TAG=\"7.2-apache\"\n  make build TAG=\"7.2-cgi\"\n  make build TAG=\"7.2-cli\"\n  make build TAG=\"7.2-lighttpd\"\n  make build TAG=\"7.2-litespeed\"\n  make build TAG=\"7.2-nginx\"\n\nbuild-73: ## Build PHP 7.3 images\n  make build TAG=\"7.3\"\n  make build TAG=\"7.3-apache\"\n  make build TAG=\"7.3-cgi\"\n  make build TAG=\"7.3-cli\"\n  make build TAG=\"7.3-lighttpd\"\n  make build TAG=\"7.3-litespeed\"\n  make build TAG=\"7.3-nginx\"\n\nbuild-all: ## Build all images\n  make build-70\n  make build-71\n  make build-72\n  make build-73\n\npush-70: ## Push built PHP 7.0 images to Docker Hub\n  @docker push phpearth/php:7.0\n  @docker push phpearth/php:7.0-apache\n  @docker push phpearth/php:7.0-cgi\n  @docker push phpearth/php:7.0-cli\n  @docker push phpearth/php:7.0-lighttpd\n  @docker push phpearth/php:7.0-litespeed\n  @docker push phpearth/php:7.0-nginx\n\npush-71: ## Push built PHP 7.1 images to Docker Hub\n  @docker push phpearth/php:7.1\n  @docker push phpearth/php:7.1-apache\n  @docker push phpearth/php:7.1-cgi\n  @docker push phpearth/php:7.1-cli\n  @docker push phpearth/php:7.1-lighttpd\n  @docker push phpearth/php:7.1-litespeed\n  @docker push phpearth/php:7.1-nginx\n\npush-72: ## Push built PHP 7.2 images to Docker Hub\n  @docker push phpearth/php:7.2\n  @docker push phpearth/php:7.2-apache\n  @docker push phpearth/php:7.2-cgi\n  @docker push phpearth/php:7.2-cli\n  @docker push phpearth/php:7.2-lighttpd\n  @docker push phpearth/php:7.2-litespeed\n  @docker push phpearth/php:7.2-nginx\n\npush-73: ## Push built PHP 7.3 images to Docker Hub\n  @docker push phpearth/php:7.3\n  @docker push phpearth/php:7.3-apache\n  @docker push phpearth/php:7.3-cgi\n  @docker push phpearth/php:7.3-cli\n  @docker push phpearth/php:7.3-lighttpd\n  @docker push phpearth/php:7.3-litespeed\n  @docker push phpearth/php:7.3-nginx\n  @docker tag phpearth/php:7.3 phpearth/php:latest\n  @docker push phpearth/php:latest\n\npush-all: ## Push all built images to Docker Hub\n  make push-70\n  make push-71\n  make push-72\n  make push-73\n\nbuild-and-push-70: ## Build and push PHP 7.0 images to Docker Hub\n  make build-70\n  make push-70\n\nbuild-and-push-71: ## Build and push PHP 7.1 images to Docker Hub\n  make build-71\n  make push-71\n\nbuild-and-push-72: ## Build and push PHP 7.2 images to Docker Hub\n  make build-72\n  make push-72\n\nbuild-and-push-73: ## Build and push PHP 7.3 images to Docker Hub\n  make build-73\n  make push-73\n\nbuild-and-push: ## Build all images and push them to Docker Hub\n  make build-all\n  make push-all\n\nclean: ## Clean all containers and images on the system\n  -@docker ps -a -q | xargs docker rm -f\n  -@docker images -q | xargs docker rmi -f\n"
  },
  {
    "path": "README.md",
    "content": "# Docker for PHP developers\n\n[![Build Status](https://img.shields.io/travis/phpearth/docker-php/master.svg?style=plastic)](https://travis-ci.org/phpearth/docker-php) [![Docker Automated build](https://img.shields.io/docker/automated/phpearth/php.svg?style=plastic)](https://hub.docker.com/r/phpearth/php/) [![MIT License](https://img.shields.io/github/license/phpearth/docker-php.svg?style=plastic \"MIT License\")](https://github.com/phpearth/docker-php/blob/master/LICENSE)\n\nCarefully crafted Docker images for PHP developers with PHP 7.3, PHP 7.2, PHP 7.1, PHP 7.0, Nginx, OpenLiteSpeed, Apache HTTP Server, and Lighttpd.\n\n![PHP.earth](https://cdn.rawgit.com/phpearth/logo/master/svg/indigo_300x300.svg \"PHP.earth\")\n\n* Fast and simple PHP extensions installation\n* Optional Composer installation\n* Optional PHPUnit installation\n* [runit](http://smarden.org/runit/) for running multiple services without overhead\n* Alpine base image with [PHP.earth PHP repositories](https://docs.php.earth/linux/alpine)\n* Optimized Docker image sizes\n* Multiple PHP versions\n\n## Documentation\n\nDocumentation with Docker and PHP recipes is available on [PHP.earth](https://docs.php.earth/docker).\n\n## Docker tags\n\nThe following list contains all current Docker tags and what is included in each.\n\n| System | Docker Tag | Features | Size |\n| ------ | ---------- | -------- | ---- |\n| **PHP 7.4.0alpha1**@Alpine 3.9.4 | [`7.4`](https://github.com/phpearth/docker-php/tree/master/docker/7.4.Dockerfile) | Small PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.4.svg)](https://microbadger.com/images/phpearth/php:7.4 \"Image size\") |\n| | [`7.4-cli`](https://github.com/phpearth/docker-php/tree/master/docker/7.4-cli.Dockerfile) | PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.4-cli.svg)](https://microbadger.com/images/phpearth/php:7.4-cli \"Image size\") |\n| | [`7.4-lighttpd`](https://github.com/phpearth/docker-php/tree/master/docker/7.4-lighttpd.Dockerfile) | Lighttpd 1.4.52 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.4-lighttpd.svg)](https://microbadger.com/images/phpearth/php:7.4-lighttpd \"Image size\") |\n| | [`7.4-litespeed`](https://github.com/phpearth/docker-php/tree/master/docker/7.4-litespeed.Dockerfile) | OpenLiteSpeed 1.5.0 RC3 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.4-litespeed.svg)](https://microbadger.com/images/phpearth/php:7.4-litespeed \"Image size\") |\n| | [`7.4-nginx`](https://github.com/phpearth/docker-php/tree/master/docker/7.4-nginx.Dockerfile) | Nginx 1.14.2, FPM | [![](https://images.microbadger.com/badges/image/phpearth/php:7.4-nginx.svg)](https://microbadger.com/images/phpearth/php:7.4-nginx \"Image size\") |\n| | [`7.4-apache`](https://github.com/phpearth/docker-php/tree/master/docker/7.4-apache.Dockerfile) | Apache 2.4.39 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.4-apache.svg)](https://microbadger.com/images/phpearth/php:7.4-apache \"Image size\") |\n| | [`7.4-cgi`](https://github.com/phpearth/docker-php/tree/master/docker/7.4-cgi.Dockerfile) | PHP CGI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.4-cgi.svg)](https://microbadger.com/images/phpearth/php:7.4-cgi \"Image size\") |\n| **PHP 7.3.4**@Alpine 3.9.3 | [`latest`, `7.3`](https://github.com/phpearth/docker-php/tree/master/docker/7.3.Dockerfile) | Small PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3.svg)](https://microbadger.com/images/phpearth/php:7.3 \"Image size\") |\n| | [`7.3-cli`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-cli.Dockerfile) | PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-cli.svg)](https://microbadger.com/images/phpearth/php:7.3-cli \"Image size\") |\n| | [`7.3-lighttpd`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-lighttpd.Dockerfile) | Lighttpd 1.4.52 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-lighttpd.svg)](https://microbadger.com/images/phpearth/php:7.3-lighttpd \"Image size\") |\n| | [`7.3-litespeed`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-litespeed.Dockerfile) | OpenLiteSpeed 1.5.0 RC3 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-litespeed.svg)](https://microbadger.com/images/phpearth/php:7.3-litespeed \"Image size\") |\n| | [`7.3-nginx`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-nginx.Dockerfile) | Nginx 1.14.2, FPM | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-nginx.svg)](https://microbadger.com/images/phpearth/php:7.3-nginx \"Image size\") |\n| | [`7.3-apache`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-apache.Dockerfile) | Apache 2.4.38 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-apache.svg)](https://microbadger.com/images/phpearth/php:7.3-apache \"Image size\") |\n| | [`7.3-cgi`](https://github.com/phpearth/docker-php/tree/master/docker/7.3-cgi.Dockerfile) | PHP CGI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.3-cgi.svg)](https://microbadger.com/images/phpearth/php:7.3-cgi \"Image size\") |\n| **PHP 7.2.17**@Alpine 3.9.3 | [`7.2`](https://github.com/phpearth/docker-php/tree/master/docker/7.2.Dockerfile) | Small PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2.svg)](https://microbadger.com/images/phpearth/php:7.2 \"Image size\") |\n| | [`7.2-cli`](https://github.com/phpearth/docker-php/tree/master/docker/7.2-cli.Dockerfile) | PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2-cli.svg)](https://microbadger.com/images/phpearth/php:7.2-cli \"Image size\") |\n| | [`7.2-lighttpd`](https://github.com/phpearth/docker-php/tree/master/docker/7.2-lighttpd.Dockerfile) | Lighttpd 1.4.52 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2-lighttpd.svg)](https://microbadger.com/images/phpearth/php:7.2-lighttpd \"Image size\") |\n| | [`7.2-litespeed`](https://github.com/phpearth/docker-php/tree/master/docker/7.2-litespeed.Dockerfile) | OpenLiteSpeed 1.5.0 RC3 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2-litespeed.svg)](https://microbadger.com/images/phpearth/php:7.2-litespeed \"Image size\") |\n| | [`7.2-nginx`](https://github.com/phpearth/docker-php/tree/master/docker/7.2-nginx.Dockerfile) | Nginx 1.14.2, FPM | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2-nginx.svg)](https://microbadger.com/images/phpearth/php:7.2-nginx \"Image size\") |\n| | [`7.2-apache`](https://github.com/phpearth/docker-php/tree/master/docker/7.2-apache.Dockerfile) | Apache 2.4.38 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2-apache.svg)](https://microbadger.com/images/phpearth/php:7.2-apache \"Image size\") |\n| | [`7.2-cgi`](https://github.com/phpearth/docker-php/tree/master/docker/7.2-cgi.Dockerfile) | PHP CGI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.2-cgi.svg)](https://microbadger.com/images/phpearth/php:7.2-cgi \"Image size\") |\n| **PHP 7.1.28**@Alpine 3.9.3 | [`7.1`](https://github.com/phpearth/docker-php/tree/master/docker/7.1.Dockerfile) | Small PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.1.svg)](https://microbadger.com/images/phpearth/php:7.1 \"Image size\") |\n| | [`7.1-cli`](https://github.com/phpearth/docker-php/tree/master/docker/7.1-cli.Dockerfile) | PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.1-cli.svg)](https://microbadger.com/images/phpearth/php:7.1-cli \"Image size\") |\n| | [`7.1-lighttpd`](https://github.com/phpearth/docker-php/tree/master/docker/7.1-lighttpd.Dockerfile) | Lighttpd 1.4.52 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.1-lighttpd.svg)](https://microbadger.com/images/phpearth/php:7.1-lighttpd \"Image size\") |\n| | [`7.1-litespeed`](https://github.com/phpearth/docker-php/tree/master/docker/7.1-litespeed.Dockerfile) | OpenLiteSpeed 1.5.0 RC3 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.1-litespeed.svg)](https://microbadger.com/images/phpearth/php:7.1-litespeed \"Image size\") |\n| | [`7.1-nginx`](https://github.com/phpearth/docker-php/tree/master/docker/7.1-nginx.Dockerfile) | Nginx 1.14.2, FPM | [![](https://images.microbadger.com/badges/image/phpearth/php:7.1-nginx.svg)](https://microbadger.com/images/phpearth/php:7.1-nginx \"Image size\") |\n| | [`7.1-apache`](https://github.com/phpearth/docker-php/tree/master/docker/7.1-apache.Dockerfile) | Apache 2.4.38 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.1-apache.svg)](https://microbadger.com/images/phpearth/php:7.1-apache \"Image size\") |\n| | [`7.1-cgi`](https://github.com/phpearth/docker-php/tree/master/docker/7.1-cgi.Dockerfile) | PHP CGI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.1-cgi.svg)](https://microbadger.com/images/phpearth/php:7.1-cgi \"Image size\") |\n| **PHP 7.0.33**@Alpine 3.7.3 | [`7.0`](https://github.com/phpearth/docker-php/tree/master/docker/7.0.Dockerfile) | Small PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.0.svg)](https://microbadger.com/images/phpearth/php:7.0 \"Image size\") |\n| | [`7.0-cli`](https://github.com/phpearth/docker-php/tree/master/docker/7.0-cli.Dockerfile) | PHP CLI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.0-cli.svg)](https://microbadger.com/images/phpearth/php:7.0-cli \"Image size\") |\n| | [`7.0-lighttpd`](https://github.com/phpearth/docker-php/tree/master/docker/7.0-lighttpd.Dockerfile) | Lighttpd 1.4.48 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.0-lighttpd.svg)](https://microbadger.com/images/phpearth/php:7.0-lighttpd \"Image size\") |\n| | [`7.0-litespeed`](https://github.com/phpearth/docker-php/tree/master/docker/7.0-litespeed.Dockerfile) | OpenLiteSpeed 1.5.0 RC3 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.0-litespeed.svg)](https://microbadger.com/images/phpearth/php:7.0-litespeed \"Image size\") |\n| | [`7.0-nginx`](https://github.com/phpearth/docker-php/tree/master/docker/7.0-nginx.Dockerfile) | Nginx 1.12.2, FPM | [![](https://images.microbadger.com/badges/image/phpearth/php:7.0-nginx.svg)](https://microbadger.com/images/phpearth/php:7.0-nginx \"Image size\") |\n| | [`7.0-apache`](https://github.com/phpearth/docker-php/tree/master/docker/7.0-apache.Dockerfile) | Apache 2.4.38 | [![](https://images.microbadger.com/badges/image/phpearth/php:7.0-apache.svg)](https://microbadger.com/images/phpearth/php:7.0-apache \"Image size\") |\n| | [`7.0-cgi`](https://github.com/phpearth/docker-php/tree/master/docker/7.0-cgi.Dockerfile) | PHP CGI | [![](https://images.microbadger.com/badges/image/phpearth/php:7.0-cgi.svg)](https://microbadger.com/images/phpearth/php:7.0-cgi \"Image size\") |\n\nTags follow PHP release cycle and [PHP supported versions timeline](http://php.net/supported-versions.php).\n\n| PHP     | Active Support Until | Security Support Until | Info |\n| ------- | -------------------- | ---------------------- | ---- |\n| **7.4** | TBD                  | TBD                    | Development 7.4 branch for testing |\n| **7.3** | TBD                  | TBD                    | Current recommended branch for production |\n| **7.2** | 2019-11-30           | 2020-11-20             | Previous stable branch |\n| **7.1** | 2018-12-01           | 2019-12-01             | Previous branch for legacy projects |\n| **7.0** | 2017-12-03           | 2018-12-03             | Previous branch for legacy projects, not supported anymore |\n\n## Quick usage\n\n### Nginx\n\n`Dockerfile` for running Nginx HTTP server with PHP FPM:\n\n```Dockerfile\nFROM phpearth/php:7.3-nginx\n```\n\nBuild Docker image and run Docker container:\n\n```bash\ndocker build -t custom-php .\ndocker run --name custom-php-container -p 80:80 -d custom-php\n```\n\n### PHP CLI\n\nTo run a CLI PHP script:\n\n```bash\ndocker run -it --rm -v `pwd`:/usr/src/myapp -w /usr/src/myapp phpearth/php php script.php\n```\n\n### Composer\n\nTo install Composer:\n\n```Dockerfile\nFROM phpearth/php:7.3-nginx\n\nRUN apk add --no-cache composer\n```\n\n### PHPUnit\n\nTo install PHPUnit:\n\n```Dockerfile\nFROM phpearth/php:7.3-nginx\n\nRUN apk add --no-cache phpunit\n```\n\n### OpenLiteSpeed\n\nTo run OpenLiteSpeed web server:\n\n```Dockerfile\nFROM phpearth/php:7.3-litespeed\n```\n\n### Lighttpd\n\nTo run Lighttpd web server:\n\n```Dockerfile\nFROM phpearth/php:7.3-lighttpd\n```\n\n### PHP extensions\n\nTo install additional PHP extensions, you can use packages from the [PHP.earth Alpine repository](https://docs.php.earth/linux/alpine):\n\n```Dockerfile\nFROM phpearth/php:7.3-nginx\n\nRUN apk add --no-cache php7.3-sodium php7.3-intl php7.3-pdo_mysql\n```\n\nor install them with `pecl`:\n\n```bash\napk add --no-cache php7.3-dev gcc g++\npecl install {extension-name}\n```\n\n### PHP ini settings\n\nTo configure extra [php.ini](https://www.php.net/manual/en/ini.php): settings,\ncreate application specific `php.ini` and copy the file into docker image:\n\n\n```ini\n# php.ini\nmemory_limit = 512M\n```\n\n```Dockerfile\nFROM phpearth/php:7.3-nginx\n\nCOPY php.ini $PHP_INI_DIR/conf.d/my-app.ini\n```\n\n#### Missing extension?\n\nIn case you'd need an additional extension in the PHP.earth repository, [open an issue](https://github.com/phpearth/docker-php/issues).\n\n### Docker Stack\n\nDocker Stack is way of orchestration of Docker services and simplifies running multiple services of your application. In this example we'll run an Nginx web server with PHP 7.3 FPM with `docker-compose.yml` file. In a new project directory create a `Dockerfile`:\n\n```Dockerfile\nFROM phpearth/php:7.3-nginx\n```\n\nThe `docker-compose.yml` file:\n\n```yml\nversion: '3.3'\n\nservices:\n  app:\n    image: my-dev-image\n    volumes:\n      - .:/var/www/html\n    ports:\n      - mode: host\n        target: 80\n        published: 80\n```\n\nThe `index.php` file:\n\n```php\n<?php\n\nphpinfo();\n```\n\nFinally we run:\n\n```bash\n# Initialize a new Swarm for development\ndocker swarm init\n# Build above image\ndocker build -t my-dev-image -f Dockerfile .\n# Deploy the above stack up and running\ndocker stack deploy -c docker-compose.yaml mystack\n```\n\nAnd there should be `phpinfo()` output visible on `http://localhost`. Make sure there isn't any other service listening on port 80 before running above command.\n\n### PHP 7.0, 7.1, PHP 7.2\n\nTo use older versions PHP 7.0, 7.1, or 7.2 use Docker images with `7.0`, `7.1`, or `7.2`:\n\n```Dockerfile\nFROM phpearth/php:7.2-nginx\n\nRUN apk add --no-cache composer\n```\n\n## PHP.earth Alpine repository\n\nThese Docker images include the latest PHP versions and packages for Alpine Linux via the 3rd party [PHP.earth Alpine repository](https://docs.php.earth/linux/alpine).\n\n```Dockerfile\nFROM alpine:3.8\n\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\nRUN echo \"https://repos.php.earth/alpine\" >> /etc/apk/repositories \\\n    && apk add --no-cache php7.3\n```\n\nPHP.earth Alpine packages are prefixed with `php7.3`, `php7.2`, `php7.1`, and `php7.0`.\n\n## Building Images\n\nImages are automatically build on [Docker Hub](https://hub.docker.com/r/phpearth/php/).\n\nDocker Cloud and therefore Docker Hub also provides\n[overriding and customization](https://docs.docker.com/docker-cloud/builds/advanced/)\nof various commands when building images automatically.\n\nThere are some hooks defined in the `docker/hooks` folder:\n\n* `hooks/build` - executed when building image\n* `hooks/post_push` - executed after building image, used to push additional tags\n  to Docker Hub.\n\n### Labels\n\n[Labels](https://docs.docker.com/engine/userguide/labels-custom-metadata/) are\nneat way to expose additional metadata about particular Docker object. We use\n[Label Schema](http://label-schema.org/) when defining image labels:\n\n* `build-date` - Date and time of the build. Defined as\n  `org.label-schema.build-date=$BUILD_DATE`, where `$BUILD_DATE` is set dynamically\n  via above `hooks/build` script\n* `vcs-url` - Repository location on GitHub. Defined as\n  `org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\"`\n* `vcs-ref` - Reference to commit in Git repository\n* `schema-version` - Version of the Label Schema in use.\n* `vendor` - Vendor name of the image creators.\n* `name`\n* `description`\n* `url`\n\n## License and contributing\n\n[Contributions](https://github.com/phpearth/docker-php/blob/master/.github/CONTRIBUTING.md) are most welcome. This repository is released under the [MIT license](https://github.com/phpearth/docker-php/blob/master/LICENSE).\n"
  },
  {
    "path": "docker/7.0-apache.Dockerfile",
    "content": "FROM alpine:3.7\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.0, Apache, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.0\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.0 \\\n        php7.0-phar \\\n        php7.0-bcmath \\\n        php7.0-calendar \\\n        php7.0-mbstring \\\n        php7.0-exif \\\n        php7.0-ftp \\\n        php7.0-openssl \\\n        php7.0-zip \\\n        php7.0-sysvsem \\\n        php7.0-sysvshm \\\n        php7.0-sysvmsg \\\n        php7.0-shmop \\\n        php7.0-sockets \\\n        php7.0-zlib \\\n        php7.0-bz2 \\\n        php7.0-curl \\\n        php7.0-simplexml \\\n        php7.0-xml \\\n        php7.0-opcache \\\n        php7.0-dom \\\n        php7.0-xmlreader \\\n        php7.0-xmlwriter \\\n        php7.0-tokenizer \\\n        php7.0-ctype \\\n        php7.0-session \\\n        php7.0-fileinfo \\\n        php7.0-iconv \\\n        php7.0-json \\\n        php7.0-posix \\\n        php7.0-apache2 \\\n        curl \\\n        ca-certificates \\\n        runit \\\n        apache2 \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.7\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && mkdir -p /run/apache2 \\\n    && ln -sf /dev/stdout /var/log/apache2/access.log \\\n    && ln -sf /dev/stderr /var/log/apache2/error.log\n\nCOPY tags/apache /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.0-cgi.Dockerfile",
    "content": "FROM alpine:3.7\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CGI 7.0, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.0\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.0 \\\n        php7.0-phar \\\n        php7.0-bcmath \\\n        php7.0-calendar \\\n        php7.0-mbstring \\\n        php7.0-exif \\\n        php7.0-ftp \\\n        php7.0-openssl \\\n        php7.0-zip \\\n        php7.0-sysvsem \\\n        php7.0-sysvshm \\\n        php7.0-sysvmsg \\\n        php7.0-shmop \\\n        php7.0-sockets \\\n        php7.0-zlib \\\n        php7.0-bz2 \\\n        php7.0-curl \\\n        php7.0-simplexml \\\n        php7.0-xml \\\n        php7.0-opcache \\\n        php7.0-dom \\\n        php7.0-xmlreader \\\n        php7.0-xmlwriter \\\n        php7.0-tokenizer \\\n        php7.0-ctype \\\n        php7.0-session \\\n        php7.0-fileinfo \\\n        php7.0-iconv \\\n        php7.0-json \\\n        php7.0-posix \\\n        php7.0-cgi \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.7\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.0-cli.Dockerfile",
    "content": "FROM alpine:3.7\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.0, additional PHP extensions, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.0\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.0 \\\n        php7.0-phar \\\n        php7.0-bcmath \\\n        php7.0-calendar \\\n        php7.0-mbstring \\\n        php7.0-exif \\\n        php7.0-ftp \\\n        php7.0-openssl \\\n        php7.0-zip \\\n        php7.0-sysvsem \\\n        php7.0-sysvshm \\\n        php7.0-sysvmsg \\\n        php7.0-shmop \\\n        php7.0-sockets \\\n        php7.0-zlib \\\n        php7.0-bz2 \\\n        php7.0-curl \\\n        php7.0-simplexml \\\n        php7.0-xml \\\n        php7.0-opcache \\\n        php7.0-dom \\\n        php7.0-xmlreader \\\n        php7.0-xmlwriter \\\n        php7.0-tokenizer \\\n        php7.0-ctype \\\n        php7.0-session \\\n        php7.0-fileinfo \\\n        php7.0-iconv \\\n        php7.0-json \\\n        php7.0-posix \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.7\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.0-lighttpd.Dockerfile",
    "content": "FROM alpine:3.7\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.0, Lighttpd, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.0\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        lighttpd \\\n        php7.0 \\\n        php7.0-phar \\\n        php7.0-bcmath \\\n        php7.0-calendar \\\n        php7.0-mbstring \\\n        php7.0-exif \\\n        php7.0-ftp \\\n        php7.0-openssl \\\n        php7.0-zip \\\n        php7.0-sysvsem \\\n        php7.0-sysvshm \\\n        php7.0-sysvmsg \\\n        php7.0-shmop \\\n        php7.0-sockets \\\n        php7.0-zlib \\\n        php7.0-bz2 \\\n        php7.0-curl \\\n        php7.0-simplexml \\\n        php7.0-xml \\\n        php7.0-opcache \\\n        php7.0-dom \\\n        php7.0-xmlreader \\\n        php7.0-xmlwriter \\\n        php7.0-tokenizer \\\n        php7.0-ctype \\\n        php7.0-session \\\n        php7.0-fileinfo \\\n        php7.0-iconv \\\n        php7.0-json \\\n        php7.0-posix \\\n        php7.0-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.7\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCOPY tags/lighttpd /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.0-litespeed.Dockerfile",
    "content": "FROM alpine:3.7\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.0, OpenLiteSpeed, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.0\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        curl \\\n        ca-certificates \\\n        runit \\\n        php7.0 \\\n        php7.0-phar \\\n        php7.0-bcmath \\\n        php7.0-calendar \\\n        php7.0-mbstring \\\n        php7.0-exif \\\n        php7.0-ftp \\\n        php7.0-openssl \\\n        php7.0-zip \\\n        php7.0-sysvsem \\\n        php7.0-sysvshm \\\n        php7.0-sysvmsg \\\n        php7.0-shmop \\\n        php7.0-sockets \\\n        php7.0-zlib \\\n        php7.0-bz2 \\\n        php7.0-curl \\\n        php7.0-simplexml \\\n        php7.0-xml \\\n        php7.0-opcache \\\n        php7.0-dom \\\n        php7.0-xmlreader \\\n        php7.0-xmlwriter \\\n        php7.0-tokenizer \\\n        php7.0-ctype \\\n        php7.0-session \\\n        php7.0-fileinfo \\\n        php7.0-iconv \\\n        php7.0-json \\\n        php7.0-posix \\\n        php7.0-litespeed \\\n        litespeed \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.7\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/lib/litespeed/logs/access.log \\\n    && ln -sf /dev/stderr /var/lib/litespeed/logs/error.log\n\nCOPY tags/litespeed /\n\nEXPOSE 8088 7080\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.0-nginx.Dockerfile",
    "content": "FROM alpine:3.7\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.0, Nginx, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.0\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        nginx \\\n        nginx-mod-http-headers-more \\\n        php7.0 \\\n        php7.0-phar \\\n        php7.0-bcmath \\\n        php7.0-calendar \\\n        php7.0-mbstring \\\n        php7.0-exif \\\n        php7.0-ftp \\\n        php7.0-openssl \\\n        php7.0-zip \\\n        php7.0-sysvsem \\\n        php7.0-sysvshm \\\n        php7.0-sysvmsg \\\n        php7.0-shmop \\\n        php7.0-sockets \\\n        php7.0-zlib \\\n        php7.0-bz2 \\\n        php7.0-curl \\\n        php7.0-simplexml \\\n        php7.0-xml \\\n        php7.0-opcache \\\n        php7.0-dom \\\n        php7.0-xmlreader \\\n        php7.0-xmlwriter \\\n        php7.0-tokenizer \\\n        php7.0-ctype \\\n        php7.0-session \\\n        php7.0-fileinfo \\\n        php7.0-iconv \\\n        php7.0-json \\\n        php7.0-posix \\\n        php7.0-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.7\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/log/nginx/access.log \\\n    && ln -sf /dev/stderr /var/log/nginx/error.log\n\nCOPY tags/nginx /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.0.Dockerfile",
    "content": "FROM alpine:3.7\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.0, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.0\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.0 \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.7\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.1-apache.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.1, Apache, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.1\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.1 \\\n        php7.1-phar \\\n        php7.1-bcmath \\\n        php7.1-calendar \\\n        php7.1-mbstring \\\n        php7.1-exif \\\n        php7.1-ftp \\\n        php7.1-openssl \\\n        php7.1-zip \\\n        php7.1-sysvsem \\\n        php7.1-sysvshm \\\n        php7.1-sysvmsg \\\n        php7.1-shmop \\\n        php7.1-sockets \\\n        php7.1-zlib \\\n        php7.1-bz2 \\\n        php7.1-curl \\\n        php7.1-simplexml \\\n        php7.1-xml \\\n        php7.1-opcache \\\n        php7.1-dom \\\n        php7.1-xmlreader \\\n        php7.1-xmlwriter \\\n        php7.1-tokenizer \\\n        php7.1-ctype \\\n        php7.1-session \\\n        php7.1-fileinfo \\\n        php7.1-iconv \\\n        php7.1-json \\\n        php7.1-posix \\\n        php7.1-apache2 \\\n        curl \\\n        ca-certificates \\\n        runit \\\n        apache2 \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && mkdir -p /run/apache2 \\\n    && ln -sf /dev/stdout /var/log/apache2/access.log \\\n    && ln -sf /dev/stderr /var/log/apache2/error.log\n\nCOPY tags/apache /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.1-cgi.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CGI 7.1, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.1\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.1 \\\n        php7.1-phar \\\n        php7.1-bcmath \\\n        php7.1-calendar \\\n        php7.1-mbstring \\\n        php7.1-exif \\\n        php7.1-ftp \\\n        php7.1-openssl \\\n        php7.1-zip \\\n        php7.1-sysvsem \\\n        php7.1-sysvshm \\\n        php7.1-sysvmsg \\\n        php7.1-shmop \\\n        php7.1-sockets \\\n        php7.1-zlib \\\n        php7.1-bz2 \\\n        php7.1-curl \\\n        php7.1-simplexml \\\n        php7.1-xml \\\n        php7.1-opcache \\\n        php7.1-dom \\\n        php7.1-xmlreader \\\n        php7.1-xmlwriter \\\n        php7.1-tokenizer \\\n        php7.1-ctype \\\n        php7.1-session \\\n        php7.1-fileinfo \\\n        php7.1-iconv \\\n        php7.1-json \\\n        php7.1-posix \\\n        php7.1-cgi \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.1-cli.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.1, additional PHP extensions, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.1\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.1 \\\n        php7.1-phar \\\n        php7.1-bcmath \\\n        php7.1-calendar \\\n        php7.1-mbstring \\\n        php7.1-exif \\\n        php7.1-ftp \\\n        php7.1-openssl \\\n        php7.1-zip \\\n        php7.1-sysvsem \\\n        php7.1-sysvshm \\\n        php7.1-sysvmsg \\\n        php7.1-shmop \\\n        php7.1-sockets \\\n        php7.1-zlib \\\n        php7.1-bz2 \\\n        php7.1-curl \\\n        php7.1-simplexml \\\n        php7.1-xml \\\n        php7.1-opcache \\\n        php7.1-dom \\\n        php7.1-xmlreader \\\n        php7.1-xmlwriter \\\n        php7.1-tokenizer \\\n        php7.1-ctype \\\n        php7.1-session \\\n        php7.1-fileinfo \\\n        php7.1-iconv \\\n        php7.1-json \\\n        php7.1-posix \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.1-lighttpd.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.1, Lighttpd, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.1\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        lighttpd \\\n        php7.1 \\\n        php7.1-phar \\\n        php7.1-bcmath \\\n        php7.1-calendar \\\n        php7.1-mbstring \\\n        php7.1-exif \\\n        php7.1-ftp \\\n        php7.1-openssl \\\n        php7.1-zip \\\n        php7.1-sysvsem \\\n        php7.1-sysvshm \\\n        php7.1-sysvmsg \\\n        php7.1-shmop \\\n        php7.1-sockets \\\n        php7.1-zlib \\\n        php7.1-bz2 \\\n        php7.1-curl \\\n        php7.1-simplexml \\\n        php7.1-xml \\\n        php7.1-opcache \\\n        php7.1-dom \\\n        php7.1-xmlreader \\\n        php7.1-xmlwriter \\\n        php7.1-tokenizer \\\n        php7.1-ctype \\\n        php7.1-session \\\n        php7.1-fileinfo \\\n        php7.1-iconv \\\n        php7.1-json \\\n        php7.1-posix \\\n        php7.1-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCOPY tags/lighttpd /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.1-litespeed.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.1, OpenLiteSpeed, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.1\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        curl \\\n        ca-certificates \\\n        runit \\\n        php7.1 \\\n        php7.1-phar \\\n        php7.1-bcmath \\\n        php7.1-calendar \\\n        php7.1-mbstring \\\n        php7.1-exif \\\n        php7.1-ftp \\\n        php7.1-openssl \\\n        php7.1-zip \\\n        php7.1-sysvsem \\\n        php7.1-sysvshm \\\n        php7.1-sysvmsg \\\n        php7.1-shmop \\\n        php7.1-sockets \\\n        php7.1-zlib \\\n        php7.1-bz2 \\\n        php7.1-curl \\\n        php7.1-simplexml \\\n        php7.1-xml \\\n        php7.1-opcache \\\n        php7.1-dom \\\n        php7.1-xmlreader \\\n        php7.1-xmlwriter \\\n        php7.1-tokenizer \\\n        php7.1-ctype \\\n        php7.1-session \\\n        php7.1-fileinfo \\\n        php7.1-iconv \\\n        php7.1-json \\\n        php7.1-posix \\\n        php7.1-litespeed \\\n        litespeed \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/lib/litespeed/logs/access.log \\\n    && ln -sf /dev/stderr /var/lib/litespeed/logs/error.log\n\nCOPY tags/litespeed /\n\nEXPOSE 8088 7080\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.1-nginx.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.1, Nginx, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.1\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        nginx \\\n        nginx-mod-http-headers-more \\\n        php7.1 \\\n        php7.1-phar \\\n        php7.1-bcmath \\\n        php7.1-calendar \\\n        php7.1-mbstring \\\n        php7.1-exif \\\n        php7.1-ftp \\\n        php7.1-openssl \\\n        php7.1-zip \\\n        php7.1-sysvsem \\\n        php7.1-sysvshm \\\n        php7.1-sysvmsg \\\n        php7.1-shmop \\\n        php7.1-sockets \\\n        php7.1-zlib \\\n        php7.1-bz2 \\\n        php7.1-curl \\\n        php7.1-simplexml \\\n        php7.1-xml \\\n        php7.1-opcache \\\n        php7.1-dom \\\n        php7.1-xmlreader \\\n        php7.1-xmlwriter \\\n        php7.1-tokenizer \\\n        php7.1-ctype \\\n        php7.1-session \\\n        php7.1-fileinfo \\\n        php7.1-iconv \\\n        php7.1-json \\\n        php7.1-posix \\\n        php7.1-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/log/nginx/access.log \\\n    && ln -sf /dev/stderr /var/log/nginx/error.log\n\nCOPY tags/nginx /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.1.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.1, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.1\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.1 \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.2-apache.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.2, Apache, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.2\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.2 \\\n        php7.2-phar \\\n        php7.2-bcmath \\\n        php7.2-calendar \\\n        php7.2-mbstring \\\n        php7.2-exif \\\n        php7.2-ftp \\\n        php7.2-openssl \\\n        php7.2-zip \\\n        php7.2-sysvsem \\\n        php7.2-sysvshm \\\n        php7.2-sysvmsg \\\n        php7.2-shmop \\\n        php7.2-sockets \\\n        php7.2-zlib \\\n        php7.2-bz2 \\\n        php7.2-curl \\\n        php7.2-simplexml \\\n        php7.2-xml \\\n        php7.2-opcache \\\n        php7.2-dom \\\n        php7.2-xmlreader \\\n        php7.2-xmlwriter \\\n        php7.2-tokenizer \\\n        php7.2-ctype \\\n        php7.2-session \\\n        php7.2-fileinfo \\\n        php7.2-iconv \\\n        php7.2-json \\\n        php7.2-posix \\\n        php7.2-apache2 \\\n        curl \\\n        ca-certificates \\\n        runit \\\n        apache2 \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && mkdir -p /run/apache2 \\\n    && ln -sf /dev/stdout /var/log/apache2/access.log \\\n    && ln -sf /dev/stderr /var/log/apache2/error.log\n\nCOPY tags/apache /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.2-cgi.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CGI 7.2, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.2\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.2 \\\n        php7.2-phar \\\n        php7.2-bcmath \\\n        php7.2-calendar \\\n        php7.2-mbstring \\\n        php7.2-exif \\\n        php7.2-ftp \\\n        php7.2-openssl \\\n        php7.2-zip \\\n        php7.2-sysvsem \\\n        php7.2-sysvshm \\\n        php7.2-sysvmsg \\\n        php7.2-shmop \\\n        php7.2-sockets \\\n        php7.2-zlib \\\n        php7.2-bz2 \\\n        php7.2-curl \\\n        php7.2-simplexml \\\n        php7.2-xml \\\n        php7.2-opcache \\\n        php7.2-dom \\\n        php7.2-xmlreader \\\n        php7.2-xmlwriter \\\n        php7.2-tokenizer \\\n        php7.2-ctype \\\n        php7.2-session \\\n        php7.2-fileinfo \\\n        php7.2-iconv \\\n        php7.2-json \\\n        php7.2-posix \\\n        php7.2-cgi \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.2-cli.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.2, additional PHP extensions, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.2\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.2 \\\n        php7.2-phar \\\n        php7.2-bcmath \\\n        php7.2-calendar \\\n        php7.2-mbstring \\\n        php7.2-exif \\\n        php7.2-ftp \\\n        php7.2-openssl \\\n        php7.2-zip \\\n        php7.2-sysvsem \\\n        php7.2-sysvshm \\\n        php7.2-sysvmsg \\\n        php7.2-shmop \\\n        php7.2-sockets \\\n        php7.2-zlib \\\n        php7.2-bz2 \\\n        php7.2-curl \\\n        php7.2-simplexml \\\n        php7.2-xml \\\n        php7.2-opcache \\\n        php7.2-dom \\\n        php7.2-xmlreader \\\n        php7.2-xmlwriter \\\n        php7.2-tokenizer \\\n        php7.2-ctype \\\n        php7.2-session \\\n        php7.2-fileinfo \\\n        php7.2-iconv \\\n        php7.2-json \\\n        php7.2-posix \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.2-lighttpd.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.2, Lighttpd, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.2\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        lighttpd \\\n        php7.2 \\\n        php7.2-phar \\\n        php7.2-bcmath \\\n        php7.2-calendar \\\n        php7.2-mbstring \\\n        php7.2-exif \\\n        php7.2-ftp \\\n        php7.2-openssl \\\n        php7.2-zip \\\n        php7.2-sysvsem \\\n        php7.2-sysvshm \\\n        php7.2-sysvmsg \\\n        php7.2-shmop \\\n        php7.2-sockets \\\n        php7.2-zlib \\\n        php7.2-bz2 \\\n        php7.2-curl \\\n        php7.2-simplexml \\\n        php7.2-xml \\\n        php7.2-opcache \\\n        php7.2-dom \\\n        php7.2-xmlreader \\\n        php7.2-xmlwriter \\\n        php7.2-tokenizer \\\n        php7.2-ctype \\\n        php7.2-session \\\n        php7.2-fileinfo \\\n        php7.2-iconv \\\n        php7.2-json \\\n        php7.2-posix \\\n        php7.2-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCOPY tags/lighttpd /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.2-litespeed.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.2, OpenLiteSpeed, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.2\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        curl \\\n        ca-certificates \\\n        runit \\\n        php7.2 \\\n        php7.2-phar \\\n        php7.2-bcmath \\\n        php7.2-calendar \\\n        php7.2-mbstring \\\n        php7.2-exif \\\n        php7.2-ftp \\\n        php7.2-openssl \\\n        php7.2-zip \\\n        php7.2-sysvsem \\\n        php7.2-sysvshm \\\n        php7.2-sysvmsg \\\n        php7.2-shmop \\\n        php7.2-sockets \\\n        php7.2-zlib \\\n        php7.2-bz2 \\\n        php7.2-curl \\\n        php7.2-simplexml \\\n        php7.2-xml \\\n        php7.2-opcache \\\n        php7.2-dom \\\n        php7.2-xmlreader \\\n        php7.2-xmlwriter \\\n        php7.2-tokenizer \\\n        php7.2-ctype \\\n        php7.2-session \\\n        php7.2-fileinfo \\\n        php7.2-iconv \\\n        php7.2-json \\\n        php7.2-posix \\\n        php7.2-litespeed \\\n        litespeed \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/lib/litespeed/logs/access.log \\\n    && ln -sf /dev/stderr /var/lib/litespeed/logs/error.log\n\nCOPY tags/litespeed /\n\nEXPOSE 8088 7080\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.2-nginx.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.2, Nginx, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.2\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        nginx \\\n        nginx-mod-http-headers-more \\\n        php7.2 \\\n        php7.2-phar \\\n        php7.2-bcmath \\\n        php7.2-calendar \\\n        php7.2-mbstring \\\n        php7.2-exif \\\n        php7.2-ftp \\\n        php7.2-openssl \\\n        php7.2-zip \\\n        php7.2-sysvsem \\\n        php7.2-sysvshm \\\n        php7.2-sysvmsg \\\n        php7.2-shmop \\\n        php7.2-sockets \\\n        php7.2-zlib \\\n        php7.2-bz2 \\\n        php7.2-curl \\\n        php7.2-simplexml \\\n        php7.2-xml \\\n        php7.2-opcache \\\n        php7.2-dom \\\n        php7.2-xmlreader \\\n        php7.2-xmlwriter \\\n        php7.2-tokenizer \\\n        php7.2-ctype \\\n        php7.2-session \\\n        php7.2-fileinfo \\\n        php7.2-iconv \\\n        php7.2-json \\\n        php7.2-posix \\\n        php7.2-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/log/nginx/access.log \\\n    && ln -sf /dev/stderr /var/log/nginx/error.log\n\nCOPY tags/nginx /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.2.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.2, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.2\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.2 \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache --virtual .build-deps $BUILD_DEPS \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.3-apache.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.3, Apache, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.3\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.3 \\\n        php7.3-phar \\\n        php7.3-bcmath \\\n        php7.3-calendar \\\n        php7.3-mbstring \\\n        php7.3-exif \\\n        php7.3-ftp \\\n        php7.3-openssl \\\n        php7.3-zip \\\n        php7.3-sysvsem \\\n        php7.3-sysvshm \\\n        php7.3-sysvmsg \\\n        php7.3-shmop \\\n        php7.3-sockets \\\n        php7.3-zlib \\\n        php7.3-bz2 \\\n        php7.3-curl \\\n        php7.3-simplexml \\\n        php7.3-xml \\\n        php7.3-opcache \\\n        php7.3-dom \\\n        php7.3-xmlreader \\\n        php7.3-xmlwriter \\\n        php7.3-tokenizer \\\n        php7.3-ctype \\\n        php7.3-session \\\n        php7.3-fileinfo \\\n        php7.3-iconv \\\n        php7.3-json \\\n        php7.3-posix \\\n        php7.3-apache2 \\\n        curl \\\n        ca-certificates \\\n        runit \\\n        apache2 \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && mkdir -p /run/apache2 \\\n    && ln -sf /dev/stdout /var/log/apache2/access.log \\\n    && ln -sf /dev/stderr /var/log/apache2/error.log\n\nCOPY tags/apache /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.3-cgi.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CGI 7.3, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.3\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.3 \\\n        php7.3-phar \\\n        php7.3-bcmath \\\n        php7.3-calendar \\\n        php7.3-mbstring \\\n        php7.3-exif \\\n        php7.3-ftp \\\n        php7.3-openssl \\\n        php7.3-zip \\\n        php7.3-sysvsem \\\n        php7.3-sysvshm \\\n        php7.3-sysvmsg \\\n        php7.3-shmop \\\n        php7.3-sockets \\\n        php7.3-zlib \\\n        php7.3-bz2 \\\n        php7.3-curl \\\n        php7.3-simplexml \\\n        php7.3-xml \\\n        php7.3-opcache \\\n        php7.3-dom \\\n        php7.3-xmlreader \\\n        php7.3-xmlwriter \\\n        php7.3-tokenizer \\\n        php7.3-ctype \\\n        php7.3-session \\\n        php7.3-fileinfo \\\n        php7.3-iconv \\\n        php7.3-json \\\n        php7.3-posix \\\n        php7.3-cgi \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.3-cli.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.3, additional PHP extensions, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.3\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.3 \\\n        php7.3-phar \\\n        php7.3-bcmath \\\n        php7.3-calendar \\\n        php7.3-mbstring \\\n        php7.3-exif \\\n        php7.3-ftp \\\n        php7.3-openssl \\\n        php7.3-zip \\\n        php7.3-sysvsem \\\n        php7.3-sysvshm \\\n        php7.3-sysvmsg \\\n        php7.3-shmop \\\n        php7.3-sockets \\\n        php7.3-zlib \\\n        php7.3-bz2 \\\n        php7.3-curl \\\n        php7.3-simplexml \\\n        php7.3-xml \\\n        php7.3-opcache \\\n        php7.3-dom \\\n        php7.3-xmlreader \\\n        php7.3-xmlwriter \\\n        php7.3-tokenizer \\\n        php7.3-ctype \\\n        php7.3-session \\\n        php7.3-fileinfo \\\n        php7.3-iconv \\\n        php7.3-json \\\n        php7.3-posix \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.3-lighttpd.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.3, Lighttpd, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.3\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        lighttpd \\\n        php7.3 \\\n        php7.3-phar \\\n        php7.3-bcmath \\\n        php7.3-calendar \\\n        php7.3-mbstring \\\n        php7.3-exif \\\n        php7.3-ftp \\\n        php7.3-openssl \\\n        php7.3-zip \\\n        php7.3-sysvsem \\\n        php7.3-sysvshm \\\n        php7.3-sysvmsg \\\n        php7.3-shmop \\\n        php7.3-sockets \\\n        php7.3-zlib \\\n        php7.3-bz2 \\\n        php7.3-curl \\\n        php7.3-simplexml \\\n        php7.3-xml \\\n        php7.3-opcache \\\n        php7.3-dom \\\n        php7.3-xmlreader \\\n        php7.3-xmlwriter \\\n        php7.3-tokenizer \\\n        php7.3-ctype \\\n        php7.3-session \\\n        php7.3-fileinfo \\\n        php7.3-iconv \\\n        php7.3-json \\\n        php7.3-posix \\\n        php7.3-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCOPY tags/lighttpd /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.3-litespeed.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.3, OpenLiteSpeed, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.3\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        curl \\\n        ca-certificates \\\n        runit \\\n        php7.3 \\\n        php7.3-phar \\\n        php7.3-bcmath \\\n        php7.3-calendar \\\n        php7.3-mbstring \\\n        php7.3-exif \\\n        php7.3-ftp \\\n        php7.3-openssl \\\n        php7.3-zip \\\n        php7.3-sysvsem \\\n        php7.3-sysvshm \\\n        php7.3-sysvmsg \\\n        php7.3-shmop \\\n        php7.3-sockets \\\n        php7.3-zlib \\\n        php7.3-bz2 \\\n        php7.3-curl \\\n        php7.3-simplexml \\\n        php7.3-xml \\\n        php7.3-opcache \\\n        php7.3-dom \\\n        php7.3-xmlreader \\\n        php7.3-xmlwriter \\\n        php7.3-tokenizer \\\n        php7.3-ctype \\\n        php7.3-session \\\n        php7.3-fileinfo \\\n        php7.3-iconv \\\n        php7.3-json \\\n        php7.3-posix \\\n        php7.3-litespeed \\\n        litespeed \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/lib/litespeed/logs/access.log \\\n    && ln -sf /dev/stderr /var/lib/litespeed/logs/error.log\n\nCOPY tags/litespeed /\n\nEXPOSE 8088 7080\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.3-nginx.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.3, Nginx, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.3\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        nginx \\\n        nginx-mod-http-headers-more \\\n        php7.3 \\\n        php7.3-phar \\\n        php7.3-bcmath \\\n        php7.3-calendar \\\n        php7.3-mbstring \\\n        php7.3-exif \\\n        php7.3-ftp \\\n        php7.3-openssl \\\n        php7.3-zip \\\n        php7.3-sysvsem \\\n        php7.3-sysvshm \\\n        php7.3-sysvmsg \\\n        php7.3-shmop \\\n        php7.3-sockets \\\n        php7.3-zlib \\\n        php7.3-bz2 \\\n        php7.3-curl \\\n        php7.3-simplexml \\\n        php7.3-xml \\\n        php7.3-opcache \\\n        php7.3-dom \\\n        php7.3-xmlreader \\\n        php7.3-xmlwriter \\\n        php7.3-tokenizer \\\n        php7.3-ctype \\\n        php7.3-session \\\n        php7.3-fileinfo \\\n        php7.3-iconv \\\n        php7.3-json \\\n        php7.3-posix \\\n        php7.3-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/log/nginx/access.log \\\n    && ln -sf /dev/stderr /var/log/nginx/error.log\n\nCOPY tags/nginx /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.3.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.3, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.3\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.3 \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache --virtual .build-deps $BUILD_DEPS \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.4-apache.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.4, Apache, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.4\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.4 \\\n        php7.4-phar \\\n        php7.4-bcmath \\\n        php7.4-calendar \\\n        php7.4-mbstring \\\n        php7.4-exif \\\n        php7.4-ftp \\\n        php7.4-openssl \\\n        php7.4-zip \\\n        php7.4-sysvsem \\\n        php7.4-sysvshm \\\n        php7.4-sysvmsg \\\n        php7.4-shmop \\\n        php7.4-sockets \\\n        php7.4-zlib \\\n        php7.4-bz2 \\\n        php7.4-curl \\\n        php7.4-simplexml \\\n        php7.4-xml \\\n        php7.4-opcache \\\n        php7.4-dom \\\n        php7.4-xmlreader \\\n        php7.4-xmlwriter \\\n        php7.4-tokenizer \\\n        php7.4-ctype \\\n        php7.4-session \\\n        php7.4-fileinfo \\\n        php7.4-iconv \\\n        php7.4-json \\\n        php7.4-posix \\\n        php7.4-apache2 \\\n        curl \\\n        ca-certificates \\\n        runit \\\n        apache2 \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && mkdir -p /run/apache2 \\\n    && ln -sf /dev/stdout /var/log/apache2/access.log \\\n    && ln -sf /dev/stderr /var/log/apache2/error.log\n\nCOPY tags/apache /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.4-cgi.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CGI 7.4, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.4\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.4 \\\n        php7.4-phar \\\n        php7.4-bcmath \\\n        php7.4-calendar \\\n        php7.4-mbstring \\\n        php7.4-exif \\\n        php7.4-ftp \\\n        php7.4-openssl \\\n        php7.4-zip \\\n        php7.4-sysvsem \\\n        php7.4-sysvshm \\\n        php7.4-sysvmsg \\\n        php7.4-shmop \\\n        php7.4-sockets \\\n        php7.4-zlib \\\n        php7.4-bz2 \\\n        php7.4-curl \\\n        php7.4-simplexml \\\n        php7.4-xml \\\n        php7.4-opcache \\\n        php7.4-dom \\\n        php7.4-xmlreader \\\n        php7.4-xmlwriter \\\n        php7.4-tokenizer \\\n        php7.4-ctype \\\n        php7.4-session \\\n        php7.4-fileinfo \\\n        php7.4-iconv \\\n        php7.4-json \\\n        php7.4-posix \\\n        php7.4-cgi \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.4-cli.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.4, additional PHP extensions, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.4\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.4 \\\n        php7.4-phar \\\n        php7.4-bcmath \\\n        php7.4-calendar \\\n        php7.4-mbstring \\\n        php7.4-exif \\\n        php7.4-ftp \\\n        php7.4-openssl \\\n        php7.4-zip \\\n        php7.4-sysvsem \\\n        php7.4-sysvshm \\\n        php7.4-sysvmsg \\\n        php7.4-shmop \\\n        php7.4-sockets \\\n        php7.4-zlib \\\n        php7.4-bz2 \\\n        php7.4-curl \\\n        php7.4-simplexml \\\n        php7.4-xml \\\n        php7.4-opcache \\\n        php7.4-dom \\\n        php7.4-xmlreader \\\n        php7.4-xmlwriter \\\n        php7.4-tokenizer \\\n        php7.4-ctype \\\n        php7.4-session \\\n        php7.4-fileinfo \\\n        php7.4-iconv \\\n        php7.4-json \\\n        php7.4-posix \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/7.4-lighttpd.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.4, Lighttpd, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.4\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        lighttpd \\\n        php7.4 \\\n        php7.4-phar \\\n        php7.4-bcmath \\\n        php7.4-calendar \\\n        php7.4-mbstring \\\n        php7.4-exif \\\n        php7.4-ftp \\\n        php7.4-openssl \\\n        php7.4-zip \\\n        php7.4-sysvsem \\\n        php7.4-sysvshm \\\n        php7.4-sysvmsg \\\n        php7.4-shmop \\\n        php7.4-sockets \\\n        php7.4-zlib \\\n        php7.4-bz2 \\\n        php7.4-curl \\\n        php7.4-simplexml \\\n        php7.4-xml \\\n        php7.4-opcache \\\n        php7.4-dom \\\n        php7.4-xmlreader \\\n        php7.4-xmlwriter \\\n        php7.4-tokenizer \\\n        php7.4-ctype \\\n        php7.4-session \\\n        php7.4-fileinfo \\\n        php7.4-iconv \\\n        php7.4-json \\\n        php7.4-posix \\\n        php7.4-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS\n\nCOPY tags/lighttpd /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.4-litespeed.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.4, OpenLiteSpeed, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.4\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        curl \\\n        ca-certificates \\\n        runit \\\n        php7.4 \\\n        php7.4-phar \\\n        php7.4-bcmath \\\n        php7.4-calendar \\\n        php7.4-mbstring \\\n        php7.4-exif \\\n        php7.4-ftp \\\n        php7.4-openssl \\\n        php7.4-zip \\\n        php7.4-sysvsem \\\n        php7.4-sysvshm \\\n        php7.4-sysvmsg \\\n        php7.4-shmop \\\n        php7.4-sockets \\\n        php7.4-zlib \\\n        php7.4-bz2 \\\n        php7.4-curl \\\n        php7.4-simplexml \\\n        php7.4-xml \\\n        php7.4-opcache \\\n        php7.4-dom \\\n        php7.4-xmlreader \\\n        php7.4-xmlwriter \\\n        php7.4-tokenizer \\\n        php7.4-ctype \\\n        php7.4-session \\\n        php7.4-fileinfo \\\n        php7.4-iconv \\\n        php7.4-json \\\n        php7.4-posix \\\n        php7.4-litespeed \\\n        litespeed \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/lib/litespeed/logs/access.log \\\n    && ln -sf /dev/stderr /var/lib/litespeed/logs/error.log\n\nCOPY tags/litespeed /\n\nEXPOSE 8088 7080\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.4-nginx.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP 7.4, Nginx, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.4\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        nginx \\\n        nginx-mod-http-headers-more \\\n        php7.4 \\\n        php7.4-phar \\\n        php7.4-bcmath \\\n        php7.4-calendar \\\n        php7.4-mbstring \\\n        php7.4-exif \\\n        php7.4-ftp \\\n        php7.4-openssl \\\n        php7.4-zip \\\n        php7.4-sysvsem \\\n        php7.4-sysvshm \\\n        php7.4-sysvmsg \\\n        php7.4-shmop \\\n        php7.4-sockets \\\n        php7.4-zlib \\\n        php7.4-bz2 \\\n        php7.4-curl \\\n        php7.4-simplexml \\\n        php7.4-xml \\\n        php7.4-opcache \\\n        php7.4-dom \\\n        php7.4-xmlreader \\\n        php7.4-xmlwriter \\\n        php7.4-tokenizer \\\n        php7.4-ctype \\\n        php7.4-session \\\n        php7.4-fileinfo \\\n        php7.4-iconv \\\n        php7.4-json \\\n        php7.4-posix \\\n        php7.4-fpm \\\n        curl \\\n        ca-certificates \\\n        runit \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache $DEPS \\\n    && ln -sf /dev/stdout /var/log/nginx/access.log \\\n    && ln -sf /dev/stderr /var/log/nginx/error.log\n\nCOPY tags/nginx /\n\nEXPOSE 80\n\nCMD [\"/sbin/runit-wrapper\"]\n"
  },
  {
    "path": "docker/7.4.Dockerfile",
    "content": "FROM alpine:3.9\n\nARG BUILD_DATE\nARG VCS_REF\n\nLABEL org.label-schema.build-date=$BUILD_DATE \\\n      org.label-schema.vcs-url=\"https://github.com/phpearth/docker-php.git\" \\\n      org.label-schema.vcs-ref=$VCS_REF \\\n      org.label-schema.schema-version=\"1.0\" \\\n      org.label-schema.vendor=\"PHP.earth\" \\\n      org.label-schema.name=\"docker-php\" \\\n      org.label-schema.description=\"Docker For PHP Developers - Docker image with PHP CLI 7.4, and Alpine\" \\\n      org.label-schema.url=\"https://github.com/phpearth/docker-php\"\n\n# PHP_INI_DIR to be symmetrical with official php docker image\nENV PHP_INI_DIR /etc/php/7.4\n\n# When using Composer, disable the warning about running commands as root/super user\nENV COMPOSER_ALLOW_SUPERUSER=1\n\n# Persistent runtime dependencies\nARG DEPS=\"\\\n        php7.4 \\\n        curl \\\n        ca-certificates \\\n\"\n\n# PHP.earth Alpine repository for better developer experience\nADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub\n\nRUN set -x \\\n    && echo \"https://repos.php.earth/alpine/v3.9\" >> /etc/apk/repositories \\\n    && apk add --no-cache --virtual .build-deps $BUILD_DEPS \\\n    && apk add --no-cache $DEPS\n\nCMD [\"php\", \"-a\"]\n"
  },
  {
    "path": "docker/hooks/build",
    "content": "#!/bin/bash\n\nTAG=$(echo $IMAGE_NAME| cut -d':' -f 2)\n\necho \"Build hook running\"\ndocker build --build-arg BUILD_DATE=`date -u +\"%Y-%m-%dT%H:%M:%SZ\"` \\\n             --build-arg VCS_REF=`git rev-parse --short HEAD` \\\n             -t $IMAGE_NAME -f $TAG.Dockerfile .\n"
  },
  {
    "path": "docker/hooks/post_push",
    "content": "#!/bin/bash\n\nTAG=$(echo $IMAGE_NAME| cut -d':' -f 2)\n\nif [ \"$TAG\" == \"7.3\" ]; then\n  docker tag $IMAGE_NAME $DOCKER_REPO:latest\n  docker push $DOCKER_REPO:latest\nfi\n"
  },
  {
    "path": "docker/tags/apache/etc/service/apache/run",
    "content": "#!/bin/sh\n\nexec 2>&1\nsource /env\n\nexec /usr/sbin/httpd -D FOREGROUND\n"
  },
  {
    "path": "docker/tags/apache/sbin/runit-wrapper",
    "content": "#!/bin/sh\n\nmain() {\n  # Dump environment\n  export > /env\n\n  trap onterm SIGTERM SIGINT\n\n  echo \"Starting runit\"\n  /sbin/runsvdir-start &\n  wait \"$!\"\n}\n\nonterm() {\n  echo \"Exiting...\"\n  pkill -SIGHUP runsvdir-start\n  exit $?\n}\n\nmain \"$@\"\n"
  },
  {
    "path": "docker/tags/apache/sbin/runsvdir-start",
    "content": "#!/bin/sh\n\nexport PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin\n\nexec runsvdir -P /etc/service\n"
  },
  {
    "path": "docker/tags/lighttpd/etc/lighttpd/example.conf",
    "content": "server.document-root = \"/var/www/localhost/htdocs/\"\n\nserver.port = 80\n\nserver.username = \"lighttpd\"\nserver.groupname = \"lighttpd\"\n\nmimetype.assign = (\n  \".html\" => \"text/html\",\n  \".txt\" => \"text/plain\",\n  \".jpg\" => \"image/jpeg\",\n  \".png\" => \"image/png\"\n)\n\nstatic-file.exclude-extensions = ( \".fcgi\", \".php\", \".rb\", \"~\", \".inc\" )\nindex-file.names = ( \"index.html\", \"index.php\" )\n\nserver.modules += ( \"mod_fastcgi\" )\nfastcgi.server = ( \".php\" =>\n    (\"localhost\" =>\n        (\n            \"socket\" => \"/run/php/php-fpm.sock\"\n        )\n    )\n)\n"
  },
  {
    "path": "docker/tags/lighttpd/etc/service/lighttpd/run",
    "content": "#!/bin/sh\n\nexec 2>&1\nsource /env\n\nexec /usr/sbin/lighttpd -D -f /etc/lighttpd/example.conf\n"
  },
  {
    "path": "docker/tags/lighttpd/etc/service/php-fpm/run",
    "content": "#!/bin/sh\n\nexec 2>&1\nsource /env\n\nexec php-fpm --nodaemonize\n"
  },
  {
    "path": "docker/tags/lighttpd/sbin/runit-wrapper",
    "content": "#!/bin/sh\n\nmain() {\n  # Dump environment\n  export > /env\n\n  trap onterm SIGTERM SIGINT\n\n  echo \"Starting runit\"\n  /sbin/runsvdir-start &\n  wait \"$!\"\n}\n\nonterm() {\n  echo \"Exiting...\"\n  pkill -SIGHUP runsvdir-start\n  exit $?\n}\n\nmain \"$@\"\n"
  },
  {
    "path": "docker/tags/lighttpd/sbin/runsvdir-start",
    "content": "#!/bin/sh\n\nexport PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin\n\nexec runsvdir -P /etc/service\n"
  },
  {
    "path": "docker/tags/lighttpd/var/www/localhost/htdocs/index.php",
    "content": "<?php\n\nphpinfo();\n"
  },
  {
    "path": "docker/tags/litespeed/etc/service/lsws/run",
    "content": "#!/bin/sh\n\nexec 2>&1\nsource /env\n\nexec sh /var/lib/litespeed/bin/lswsctrl start\n"
  },
  {
    "path": "docker/tags/litespeed/sbin/runit-wrapper",
    "content": "#!/bin/sh\n\nmain() {\n  # Dump environment\n  export > /env\n\n  trap onterm SIGTERM SIGINT\n\n  echo \"Starting runit\"\n  /sbin/runsvdir-start &\n  wait \"$!\"\n}\n\nonterm() {\n  echo \"Exiting...\"\n  pkill -SIGHUP runsvdir-start\n  exit $?\n}\n\nmain \"$@\"\n"
  },
  {
    "path": "docker/tags/litespeed/sbin/runsvdir-start",
    "content": "#!/bin/sh\n\nexport PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin\n\nexec runsvdir -P /etc/service\n"
  },
  {
    "path": "docker/tags/nginx/etc/nginx/conf.d/default.conf",
    "content": "server {\n    listen 80 default_server;\n\n    root /var/www/html;\n\n    index index.html index.htm index.php;\n\n    server_name _;\n\n    charset utf-8;\n\n    location = /favicon.ico { log_not_found off; access_log off; }\n    location = /robots.txt  { log_not_found off; access_log off; }\n\n    location / {\n        try_files $uri $uri/ /index.php$is_args$args;\n    }\n\n    location ~ \\.php$ {\n        fastcgi_pass unix:/run/php/php-fpm.sock;\n        include fastcgi.conf;\n    }\n\n    error_page 404 /index.php;\n\n    location ~ /\\.ht {\n        deny all;\n    }\n}\n"
  },
  {
    "path": "docker/tags/nginx/etc/service/nginx/run",
    "content": "#!/bin/sh\n\nexec 2>&1\nsource /env\n\nmkdir -p /run/nginx\nexec /usr/sbin/nginx -g 'daemon off;'\n"
  },
  {
    "path": "docker/tags/nginx/etc/service/php-fpm/run",
    "content": "#!/bin/sh\n\nexec 2>&1\nsource /env\n\nexec php-fpm --nodaemonize\n"
  },
  {
    "path": "docker/tags/nginx/sbin/runit-wrapper",
    "content": "#!/bin/sh\n\nmain() {\n  # Dump environment\n  export > /env\n\n  trap onterm SIGTERM SIGINT\n\n  echo \"Starting runit\"\n  /sbin/runsvdir-start &\n  wait \"$!\"\n}\n\nonterm() {\n  echo \"Exiting...\"\n  pkill -SIGHUP runsvdir-start\n  exit $?\n}\n\nmain \"$@\"\n"
  },
  {
    "path": "docker/tags/nginx/sbin/runsvdir-start",
    "content": "#!/bin/sh\n\nexport PATH=/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin\n\nexec runsvdir -P /etc/service\n"
  },
  {
    "path": "docker/tags/nginx/var/www/html/index.php",
    "content": "<?php\n\nphpinfo();\n"
  },
  {
    "path": "tests/7.0-apache/goss.yaml",
    "content": "file:\n  /var/log/apache2/access.log:\n    exists: true\n    mode: \"0777\"\n    size: 11\n    owner: root\n    group: wheel\n    linked-to: /dev/stdout\n    filetype: symlink\n    contains: []\n  /var/log/apache2/error.log:\n    exists: true\n    mode: \"0777\"\n    size: 11\n    owner: root\n    group: wheel\n    linked-to: /dev/stderr\n    filetype: symlink\n    contains: []\npackage:\n  apache2:\n    installed: true\nport:\n  tcp:80:\n    listening: false\n    ip: []\nprocess:\n  httpd:\n    running: true\nhttp:\n  http://localhost:\n    status: 200\n    allow-insecure: false\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - It works!\n"
  },
  {
    "path": "tests/7.0-apache/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.0-apache -f ../../docker/7.0-apache.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -p 80:80 phpearth/test:7.0-apache || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.0-cgi/goss.yaml",
    "content": "command:\n  php-cgi -m:\n    exit-status: 0\n    stdout:\n    - '[PHP Modules]'\n    - bcmath\n    - bz2\n    - calendar\n    - cgi-fcgi\n    - Core\n    - ctype\n    - curl\n    - date\n    - dom\n    - exif\n    - fileinfo\n    - filter\n    - ftp\n    - hash\n    - iconv\n    - json\n    - libxml\n    - mbstring\n    - openssl\n    - pcre\n    - Phar\n    - posix\n    - readline\n    - Reflection\n    - session\n    - shmop\n    - SimpleXML\n    - sockets\n    - SPL\n    - standard\n    - sysvmsg\n    - sysvsem\n    - sysvshm\n    - tokenizer\n    - xml\n    - xmlreader\n    - xmlwriter\n    - Zend OPcache\n    - zip\n    - zlib\n    - '[Zend Modules]'\n    - Zend OPcache\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.0-cgi/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.0-cgi -f ../../docker/7.0-cgi.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -it phpearth/test:7.0-cgi || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.0-composer/Dockerfile",
    "content": "FROM phpearth/test:7.0-cli\n\nRUN set -x \\\n    && apk add --no-cache \\\n        composer\n"
  },
  {
    "path": "tests/7.0-composer/goss.yaml",
    "content": "command:\n  composer about:\n    exit-status: 0\n    stdout:\n    - 'Composer - Package Management for PHP'\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.0-composer/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.0-cli -f ../../docker/7.0-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.0-composer -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.0-composer || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.0-extensions/Dockerfile",
    "content": "FROM phpearth/test:7.0-cli\n\nRUN set -x \\\n    && apk add --no-cache \\\n        php7.0-apcu \\\n        php7.0-cmark \\\n        php7.0-ds \\\n        php7.0-imagick \\\n        php7.0-sodium \\\n        php7.0-memcached \\\n        php7.0-meminfo \\\n        php7.0-mongodb \\\n        php7.0-redis \\\n        php7.0-swoole \\\n        php7.0-xdebug \\\n        php7.0-yaml\n"
  },
  {
    "path": "tests/7.0-extensions/goss.yaml",
    "content": "command:\n  php -m:\n    exit-status: 0\n    stdout:\n    - '[PHP Modules]'\n    - apcu\n    - bcmath\n    - bz2\n    - calendar\n    - cmark\n    - Core\n    - ctype\n    - curl\n    - date\n    - dom\n    - ds\n    - exif\n    - fileinfo\n    - filter\n    - ftp\n    - hash\n    - iconv\n    - imagick\n    - json\n    - sodium\n    - libxml\n    - mbstring\n    - memcached\n    - meminfo\n    - mongodb\n    - openssl\n    - pcre\n    - Phar\n    - posix\n    - readline\n    - redis\n    - Reflection\n    - session\n    - shmop\n    - SimpleXML\n    - sockets\n    - SPL\n    - standard\n    - swoole\n    - sysvmsg\n    - sysvsem\n    - sysvshm\n    - tokenizer\n    - xdebug\n    - xml\n    - xmlreader\n    - xmlwriter\n    - yaml\n    - Zend OPcache\n    - zip\n    - zlib\n    - '[Zend Modules]'\n    - Xdebug\n    - Zend OPcache\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.0-extensions/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.0-cli -f ../../docker/7.0-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.0-extensions -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.0-extensions || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.0-litespeed/goss.yaml",
    "content": "file:\n  /var/log/litespeed/access.log:\n    exists: true\n    linked-to: /dev/stdout\n    filetype: symlink\n  /var/log/litespeed/error.log:\n    exists: true\n    linked-to: /dev/stderr\n    filetype: symlink\nprocess:\n  litespeed:\n    running: true\nhttp:\n  http://localhost:8088:\n    status: 200\n    allow-insecure: false\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - You have successfully installed the OpenLiteSpeed Web Server!\n"
  },
  {
    "path": "tests/7.0-litespeed/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.0-litespeed -f ../../docker/7.0-litespeed.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -p 8088:8088 phpearth/test:7.0-litespeed || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.0-nginx/goss.yaml",
    "content": "file:\n  /var/log/nginx/access.log:\n    exists: true\n    linked-to: /dev/stdout\n    filetype: symlink\n  /var/log/nginx/error.log:\n    exists: true\n    linked-to: /dev/stderr\n    filetype: symlink\npackage:\n  nginx:\n    installed: true\nport:\n  tcp:80:\n    listening: true\n    ip:\n    - 0.0.0.0\nprocess:\n  nginx:\n    running: true\nhttp:\n  http://localhost:\n    status: 200\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - PHP Version 7.0\n"
  },
  {
    "path": "tests/7.0-nginx/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.0-nginx -f ../../docker/7.0-nginx.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run phpearth/test:7.0-nginx || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.1-apache/goss.yaml",
    "content": "file:\n  /var/log/apache2/access.log:\n    exists: true\n    mode: \"0777\"\n    size: 11\n    owner: root\n    group: wheel\n    linked-to: /dev/stdout\n    filetype: symlink\n    contains: []\n  /var/log/apache2/error.log:\n    exists: true\n    mode: \"0777\"\n    size: 11\n    owner: root\n    group: wheel\n    linked-to: /dev/stderr\n    filetype: symlink\n    contains: []\npackage:\n  apache2:\n    installed: true\nport:\n  tcp:80:\n    listening: false\n    ip: []\nprocess:\n  httpd:\n    running: true\nhttp:\n  http://localhost:\n    status: 200\n    allow-insecure: false\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - It works!\n"
  },
  {
    "path": "tests/7.1-apache/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.1-apache -f ../../docker/7.1-apache.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -p 80:80 phpearth/test:7.1-apache || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.1-cgi/goss.yaml",
    "content": "command:\n  php-cgi -m:\n    exit-status: 0\n    stdout:\n    - '[PHP Modules]'\n    - bcmath\n    - bz2\n    - calendar\n    - cgi-fcgi\n    - Core\n    - ctype\n    - curl\n    - date\n    - dom\n    - exif\n    - fileinfo\n    - filter\n    - ftp\n    - hash\n    - iconv\n    - json\n    - libxml\n    - mbstring\n    - openssl\n    - pcre\n    - Phar\n    - posix\n    - readline\n    - Reflection\n    - session\n    - shmop\n    - SimpleXML\n    - sockets\n    - SPL\n    - standard\n    - sysvmsg\n    - sysvsem\n    - sysvshm\n    - tokenizer\n    - xml\n    - xmlreader\n    - xmlwriter\n    - Zend OPcache\n    - zip\n    - zlib\n    - '[Zend Modules]'\n    - Zend OPcache\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.1-cgi/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.1-cgi -f ../../docker/7.1-cgi.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -it phpearth/test:7.1-cgi || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.1-composer/Dockerfile",
    "content": "FROM phpearth/test:7.1-cli\n\nRUN set -x \\\n    && apk add --no-cache \\\n        composer\n"
  },
  {
    "path": "tests/7.1-composer/goss.yaml",
    "content": "command:\n  composer about:\n    exit-status: 0\n    stdout:\n    - 'Composer - Package Management for PHP'\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.1-composer/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.1-cli -f ../../docker/7.1-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.1-composer -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.1-composer || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.1-extensions/Dockerfile",
    "content": "FROM phpearth/test:7.1-cli\n\nRUN apk add --no-cache \\\n    php7.1-apcu \\\n    php7.1-cmark \\\n    php7.1-ds \\\n    php7.1-imagick \\\n    php7.1-sodium \\\n    php7.1-memcached \\\n    php7.1-meminfo \\\n    php7.1-mongodb \\\n    php7.1-redis \\\n    php7.1-swoole \\\n    php7.1-xdebug \\\n    php7.1-yaml\n"
  },
  {
    "path": "tests/7.1-extensions/goss.yaml",
    "content": "command:\n  php -m:\n    exit-status: 0\n    stdout:\n    - '[PHP Modules]'\n    - apcu\n    - bcmath\n    - bz2\n    - calendar\n    - cmark\n    - Core\n    - ctype\n    - curl\n    - date\n    - dom\n    - ds\n    - exif\n    - fileinfo\n    - filter\n    - ftp\n    - hash\n    - iconv\n    - imagick\n    - json\n    - sodium\n    - libxml\n    - mbstring\n    - memcached\n    - meminfo\n    - mongodb\n    - openssl\n    - pcre\n    - Phar\n    - posix\n    - readline\n    - redis\n    - Reflection\n    - session\n    - shmop\n    - SimpleXML\n    - sockets\n    - SPL\n    - standard\n    - swoole\n    - sysvmsg\n    - sysvsem\n    - sysvshm\n    - tokenizer\n    - xdebug\n    - xml\n    - xmlreader\n    - xmlwriter\n    - yaml\n    - Zend OPcache\n    - zip\n    - zlib\n    - '[Zend Modules]'\n    - Xdebug\n    - Zend OPcache\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.1-extensions/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.1-cli -f ../../docker/7.1-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.1-extensions -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.1-extensions || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.1-iconv/Dockerfile",
    "content": "FROM phpearth/test:7.1-cli\n\nRUN mkdir -p /usr/src/app\n\nADD iconv.php /usr/src/app/iconv.php\n\nWORKDIR /usr/src/app\n"
  },
  {
    "path": "tests/7.1-iconv/goss.yaml",
    "content": "command:\n  php iconv.php:\n    exit-status: 0\n    stdout: ['!/./']\n    stderr: ['!/./']\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.1-iconv/iconv.php",
    "content": "<?php\n\nini_set('display_errors', '1');\nerror_reporting(-1);\n\niconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', 'šěýčíéáýřčíšýíščř');\n"
  },
  {
    "path": "tests/7.1-iconv/test",
    "content": "#!/bin/bash\n\ndocker build --no-cache -t phpearth/test:7.1-cli -f ../../docker/7.1-cli.Dockerfile ../../docker || exit 1\ndocker build --no-cache -t phpearth/test:7.1-iconv -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.1-iconv || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.1-litespeed/goss.yaml",
    "content": "file:\n  /var/log/litespeed/access.log:\n    exists: true\n    linked-to: /dev/stdout\n    filetype: symlink\n  /var/log/litespeed/error.log:\n    exists: true\n    linked-to: /dev/stderr\n    filetype: symlink\nprocess:\n  litespeed:\n    running: true\nhttp:\n  http://localhost:8088:\n    status: 200\n    allow-insecure: false\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - You have successfully installed the OpenLiteSpeed Web Server!\n"
  },
  {
    "path": "tests/7.1-litespeed/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.1-litespeed -f ../../docker/7.1-litespeed.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -p 8088:8088 phpearth/test:7.1-litespeed || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.1-nginx/goss.yaml",
    "content": "file:\n  /var/log/nginx/access.log:\n    exists: true\n    linked-to: /dev/stdout\n    filetype: symlink\n  /var/log/nginx/error.log:\n    exists: true\n    linked-to: /dev/stderr\n    filetype: symlink\npackage:\n  nginx:\n    installed: true\nport:\n  tcp:80:\n    listening: true\n    ip:\n    - 0.0.0.0\nprocess:\n  nginx:\n    running: true\nhttp:\n  http://localhost:\n    status: 200\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - PHP Version 7.1\n"
  },
  {
    "path": "tests/7.1-nginx/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.1-nginx -f ../../docker/7.1-nginx.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run phpearth/test:7.1-nginx || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.1-phpunit/Dockerfile",
    "content": "FROM phpearth/test:7.1-cli\n\nRUN set -x \\\n    && apk add --no-cache \\\n        phpunit\n"
  },
  {
    "path": "tests/7.1-phpunit/goss.yaml",
    "content": "command:\n  phpunit --version:\n    exit-status: 0\n    stdout:\n    - 'by Sebastian Bergmann and contributors.'\n    stderr: []\n    timeout: 10000\n  phpunit --atleast-version 8:\n    exit-status: 1\n    stdout:\n    - ''\n    stderr: []\n    timeout: 10000\n  phpunit --atleast-version 6.3:\n    exit-status: 0\n    stdout:\n    - ''\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.1-phpunit/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.1-cli -f ../../docker/7.1-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.1-phpunit -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.1-phpunit || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.2-apache/goss.yaml",
    "content": "file:\n  /var/log/apache2/access.log:\n    exists: true\n    mode: \"0777\"\n    size: 11\n    owner: root\n    group: wheel\n    linked-to: /dev/stdout\n    filetype: symlink\n    contains: []\n  /var/log/apache2/error.log:\n    exists: true\n    mode: \"0777\"\n    size: 11\n    owner: root\n    group: wheel\n    linked-to: /dev/stderr\n    filetype: symlink\n    contains: []\npackage:\n  apache2:\n    installed: true\nport:\n  tcp:80:\n    listening: false\n    ip: []\nprocess:\n  httpd:\n    running: true\nhttp:\n  http://localhost:\n    status: 200\n    allow-insecure: false\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - It works!\n"
  },
  {
    "path": "tests/7.2-apache/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.2-apache -f ../../docker/7.2-apache.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -p 80:80 phpearth/test:7.2-apache || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.2-argon/Dockerfile",
    "content": "FROM phpearth/test:7.2-cli\n\nRUN mkdir -p /usr/src/app\n\nADD argon.php /usr/src/app/argon.php\n\nWORKDIR /usr/src/app\n"
  },
  {
    "path": "tests/7.2-argon/argon.php",
    "content": "<?php\n\n// plain text password\n$password = 'secretcode';\n\n// password hashed with PASSWORD_ARGON2I\necho password_hash($password, PASSWORD_ARGON2I);\n"
  },
  {
    "path": "tests/7.2-argon/goss.yaml",
    "content": "command:\n  php argon.php:\n    exit-status: 0\n    stderr: ['!/./']\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.2-argon/test",
    "content": "#!/bin/bash\n\ndocker build --no-cache -t phpearth/test:7.2-cli -f ../../docker/7.2-cli.Dockerfile ../../docker || exit 1\ndocker build --no-cache -t phpearth/test:7.2-argon -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.2-argon || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.2-cgi/goss.yaml",
    "content": "command:\n  php-cgi -m:\n    exit-status: 0\n    stdout:\n    - '[PHP Modules]'\n    - bcmath\n    - bz2\n    - calendar\n    - cgi-fcgi\n    - Core\n    - ctype\n    - curl\n    - date\n    - dom\n    - exif\n    - fileinfo\n    - filter\n    - ftp\n    - hash\n    - iconv\n    - json\n    - libxml\n    - mbstring\n    - openssl\n    - pcre\n    - Phar\n    - posix\n    - readline\n    - Reflection\n    - session\n    - shmop\n    - SimpleXML\n    - sockets\n    - SPL\n    - standard\n    - sysvmsg\n    - sysvsem\n    - sysvshm\n    - tokenizer\n    - xml\n    - xmlreader\n    - xmlwriter\n    - Zend OPcache\n    - zip\n    - zlib\n    - '[Zend Modules]'\n    - Zend OPcache\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.2-cgi/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.2-cgi -f ../../docker/7.2-cgi.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -it phpearth/test:7.2-cgi || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.2-composer/Dockerfile",
    "content": "FROM phpearth/test:7.2-cli\n\nRUN set -x \\\n    && apk add --no-cache \\\n        composer\n"
  },
  {
    "path": "tests/7.2-composer/goss.yaml",
    "content": "command:\n  composer about:\n    exit-status: 0\n    stdout:\n    - 'Composer - Package Management for PHP'\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.2-composer/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.2-cli -f ../../docker/7.2-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.2-composer -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.2-composer || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.2-extensions/Dockerfile",
    "content": "FROM phpearth/test:7.2-cli\n\nRUN apk add --no-cache \\\n    php7.2-apcu \\\n    php7.2-cmark \\\n    php7.2-ds \\\n    php7.2-imagick \\\n    php7.2-sodium \\\n    php7.2-memcached \\\n    php7.2-meminfo \\\n    php7.2-mongodb \\\n    php7.2-redis \\\n    php7.2-swoole \\\n    php7.2-xdebug \\\n    php7.2-yaml\n"
  },
  {
    "path": "tests/7.2-extensions/goss.yaml",
    "content": "command:\n  php -m:\n    exit-status: 0\n    stdout:\n    - '[PHP Modules]'\n    - apcu\n    - bcmath\n    - bz2\n    - calendar\n    - cmark\n    - Core\n    - ctype\n    - curl\n    - date\n    - dom\n    - ds\n    - exif\n    - fileinfo\n    - filter\n    - ftp\n    - hash\n    - iconv\n    - imagick\n    - json\n    - sodium\n    - libxml\n    - mbstring\n    - memcached\n    - meminfo\n    - mongodb\n    - openssl\n    - pcre\n    - Phar\n    - posix\n    - readline\n    - redis\n    - Reflection\n    - session\n    - shmop\n    - SimpleXML\n    - sockets\n    - SPL\n    - standard\n    - swoole\n    - sysvmsg\n    - sysvsem\n    - sysvshm\n    - tokenizer\n    - xdebug\n    - xml\n    - xmlreader\n    - xmlwriter\n    - yaml\n    - Zend OPcache\n    - zip\n    - zlib\n    - '[Zend Modules]'\n    - Xdebug\n    - Zend OPcache\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.2-extensions/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.2-cli -f ../../docker/7.2-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.2-extensions -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.2-extensions || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.2-litespeed/goss.yaml",
    "content": "file:\n  /var/log/litespeed/access.log:\n    exists: true\n    linked-to: /dev/stdout\n    filetype: symlink\n  /var/log/litespeed/error.log:\n    exists: true\n    linked-to: /dev/stderr\n    filetype: symlink\nprocess:\n  litespeed:\n    running: true\nhttp:\n  http://localhost:8088:\n    status: 200\n    allow-insecure: false\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - You have successfully installed the OpenLiteSpeed Web Server!\n"
  },
  {
    "path": "tests/7.2-litespeed/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.2-litespeed -f ../../docker/7.2-litespeed.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -p 8088:8088 phpearth/test:7.2-litespeed || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.2-nginx/goss.yaml",
    "content": "file:\n  /var/log/nginx/access.log:\n    exists: true\n    linked-to: /dev/stdout\n    filetype: symlink\n  /var/log/nginx/error.log:\n    exists: true\n    linked-to: /dev/stderr\n    filetype: symlink\npackage:\n  nginx:\n    installed: true\nport:\n  tcp:80:\n    listening: true\n    ip:\n    - 0.0.0.0\nprocess:\n  nginx:\n    running: true\nhttp:\n  http://localhost:\n    status: 200\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - PHP Version 7.2\n"
  },
  {
    "path": "tests/7.2-nginx/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.2-nginx -f ../../docker/7.2-nginx.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run phpearth/test:7.2-nginx || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.2-phpunit/Dockerfile",
    "content": "FROM phpearth/test:7.2-cli\n\nRUN set -x \\\n    && apk add --no-cache \\\n        phpunit\n"
  },
  {
    "path": "tests/7.2-phpunit/goss.yaml",
    "content": "command:\n  phpunit --version:\n    exit-status: 0\n    stdout:\n    - 'by Sebastian Bergmann and contributors.'\n    stderr: []\n    timeout: 10000\n  phpunit --atleast-version 8:\n    exit-status: 1\n    stdout:\n    - ''\n    stderr: []\n    timeout: 10000\n  phpunit --atleast-version 6.3:\n    exit-status: 0\n    stdout:\n    - ''\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.2-phpunit/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.2-cli -f ../../docker/7.2-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.2-phpunit -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.2-phpunit || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.3-apache/goss.yaml",
    "content": "file:\n  /var/log/apache2/access.log:\n    exists: true\n    mode: \"0777\"\n    size: 11\n    owner: root\n    group: wheel\n    linked-to: /dev/stdout\n    filetype: symlink\n    contains: []\n  /var/log/apache2/error.log:\n    exists: true\n    mode: \"0777\"\n    size: 11\n    owner: root\n    group: wheel\n    linked-to: /dev/stderr\n    filetype: symlink\n    contains: []\npackage:\n  apache2:\n    installed: true\nport:\n  tcp:80:\n    listening: false\n    ip: []\nprocess:\n  httpd:\n    running: true\nhttp:\n  http://localhost:\n    status: 200\n    allow-insecure: false\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - It works!\n"
  },
  {
    "path": "tests/7.3-apache/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.3-apache -f ../../docker/7.3-apache.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -p 80:80 phpearth/test:7.3-apache || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.3-argon/Dockerfile",
    "content": "FROM phpearth/test:7.3-cli\n\nRUN mkdir -p /usr/src/app\n\nADD argon.php /usr/src/app/argon.php\n\nWORKDIR /usr/src/app\n"
  },
  {
    "path": "tests/7.3-argon/argon.php",
    "content": "<?php\n\n// plain text password\n$password = 'secretcode';\n\n// password hashed with PASSWORD_ARGON2I\necho password_hash($password, PASSWORD_ARGON2I);\n"
  },
  {
    "path": "tests/7.3-argon/goss.yaml",
    "content": "command:\n  php argon.php:\n    exit-status: 0\n    stderr: ['!/./']\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.3-argon/test",
    "content": "#!/bin/bash\n\ndocker build --no-cache -t phpearth/test:7.3-cli -f ../../docker/7.3-cli.Dockerfile ../../docker || exit 1\ndocker build --no-cache -t phpearth/test:7.3-argon -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.3-argon || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.3-cgi/goss.yaml",
    "content": "command:\n  php-cgi -m:\n    exit-status: 0\n    stdout:\n    - '[PHP Modules]'\n    - bcmath\n    - bz2\n    - calendar\n    - cgi-fcgi\n    - Core\n    - ctype\n    - curl\n    - date\n    - dom\n    - exif\n    - fileinfo\n    - filter\n    - ftp\n    - hash\n    - iconv\n    - json\n    - libxml\n    - mbstring\n    - openssl\n    - pcre\n    - Phar\n    - posix\n    - readline\n    - Reflection\n    - session\n    - shmop\n    - SimpleXML\n    - sockets\n    - SPL\n    - standard\n    - sysvmsg\n    - sysvsem\n    - sysvshm\n    - tokenizer\n    - xml\n    - xmlreader\n    - xmlwriter\n    - Zend OPcache\n    - zip\n    - zlib\n    - '[Zend Modules]'\n    - Zend OPcache\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.3-cgi/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.3-cgi -f ../../docker/7.3-cgi.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -it phpearth/test:7.3-cgi || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.3-composer/Dockerfile",
    "content": "FROM phpearth/test:7.3-cli\n\nRUN set -x \\\n    && apk add --no-cache \\\n        composer\n"
  },
  {
    "path": "tests/7.3-composer/goss.yaml",
    "content": "command:\n  composer about:\n    exit-status: 0\n    stdout:\n    - 'Composer - Package Management for PHP'\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.3-composer/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.3-cli -f ../../docker/7.3-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.3-composer -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.3-composer || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.3-extensions/Dockerfile",
    "content": "FROM phpearth/test:7.3-cli\n\nRUN apk add --no-cache \\\n    php7.3-apcu \\\n    php7.3-cmark \\\n    php7.3-ds \\\n    php7.3-imagick \\\n    php7.3-sodium \\\n    php7.3-memcached \\\n    php7.3-meminfo \\\n    php7.3-mongodb \\\n    php7.3-redis \\\n    php7.3-swoole \\\n    php7.3-xdebug \\\n    php7.3-yaml\n"
  },
  {
    "path": "tests/7.3-extensions/goss.yaml",
    "content": "command:\n  php -m:\n    exit-status: 0\n    stdout:\n    - '[PHP Modules]'\n    - apcu\n    - bcmath\n    - bz2\n    - calendar\n    - cmark\n    - Core\n    - ctype\n    - curl\n    - date\n    - dom\n    - ds\n    - exif\n    - fileinfo\n    - filter\n    - ftp\n    - hash\n    - iconv\n    - imagick\n    - json\n    - sodium\n    - libxml\n    - mbstring\n    - memcached\n    - meminfo\n    - mongodb\n    - openssl\n    - pcre\n    - Phar\n    - posix\n    - readline\n    - redis\n    - Reflection\n    - session\n    - shmop\n    - SimpleXML\n    - sockets\n    - SPL\n    - standard\n    - swoole\n    - sysvmsg\n    - sysvsem\n    - sysvshm\n    - tokenizer\n    - xdebug\n    - xml\n    - xmlreader\n    - xmlwriter\n    - yaml\n    - Zend OPcache\n    - zip\n    - zlib\n    - '[Zend Modules]'\n    - Xdebug\n    - Zend OPcache\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.3-extensions/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.3-cli -f ../../docker/7.3-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.3-extensions -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.3-extensions || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.3-litespeed/goss.yaml",
    "content": "file:\n  /var/log/litespeed/access.log:\n    exists: true\n    linked-to: /dev/stdout\n    filetype: symlink\n  /var/log/litespeed/error.log:\n    exists: true\n    linked-to: /dev/stderr\n    filetype: symlink\nprocess:\n  litespeed:\n    running: true\nhttp:\n  http://localhost:8088:\n    status: 200\n    allow-insecure: false\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - You have successfully installed the OpenLiteSpeed Web Server!\n"
  },
  {
    "path": "tests/7.3-litespeed/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.3-litespeed -f ../../docker/7.3-litespeed.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run -p 8088:8088 phpearth/test:7.3-litespeed || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.3-nginx/goss.yaml",
    "content": "file:\n  /var/log/nginx/access.log:\n    exists: true\n    linked-to: /dev/stdout\n    filetype: symlink\n  /var/log/nginx/error.log:\n    exists: true\n    linked-to: /dev/stderr\n    filetype: symlink\npackage:\n  nginx:\n    installed: true\nport:\n  tcp:80:\n    listening: true\n    ip:\n    - 0.0.0.0\nprocess:\n  nginx:\n    running: true\nhttp:\n  http://localhost:\n    status: 200\n    no-follow-redirects: false\n    timeout: 5000\n    body:\n    - PHP Version 7.3\n"
  },
  {
    "path": "tests/7.3-nginx/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.3-nginx -f ../../docker/7.3-nginx.Dockerfile ../../docker || exit 1\n\ni=0\ntime dgoss run phpearth/test:7.3-nginx || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/7.3-phpunit/Dockerfile",
    "content": "FROM phpearth/test:7.3-cli\n\nRUN set -x \\\n    && apk add --no-cache \\\n        phpunit\n"
  },
  {
    "path": "tests/7.3-phpunit/goss.yaml",
    "content": "command:\n  phpunit --version:\n    exit-status: 0\n    stdout:\n    - 'by Sebastian Bergmann and contributors.'\n    stderr: []\n    timeout: 10000\n  phpunit --atleast-version 8:\n    exit-status: 1\n    stdout:\n    - ''\n    stderr: []\n    timeout: 10000\n  phpunit --atleast-version 6.3:\n    exit-status: 0\n    stdout:\n    - ''\n    stderr: []\n    timeout: 10000\n"
  },
  {
    "path": "tests/7.3-phpunit/test",
    "content": "#!/bin/bash\n\ndocker build -t phpearth/test:7.3-cli -f ../../docker/7.3-cli.Dockerfile ../../docker || exit 1\ndocker build -t phpearth/test:7.3-phpunit -f Dockerfile .\n\ni=0\ntime dgoss run -it phpearth/test:7.3-phpunit || ((i++))\n\nexit $i\n"
  },
  {
    "path": "tests/test",
    "content": "#!/bin/bash\n\ntests=\"${1:-all}\"\ni=0\n\nrun() {\n  echo -e \"\\n\\n=======================\"\n  echo \"testing $1\"\n  echo \"=======================\"\n  pushd $1 > /dev/null\n  ./test || ((i++))\n  popd > /dev/null\n}\n\nif [ \"$tests\" = \"all\" ]; then\n  for x in */;do\n    run $x\n  done\nelse\n  for test in $tests; do\n    run $test\n  done\nfi\n\nexit $i\n"
  }
]