diff --git a/README.md b/README.md index 406290b..a0a47d7 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,23 @@ apk add --no-cache php7.3-dev gcc g++ pecl install {extension-name} ``` +### PHP ini settings + +To configure extra [php.ini](https://www.php.net/manual/en/ini.php): settings, +create application specific `php.ini` and copy the file into docker image: + + +```ini +# php.ini +memory_limit = 512M +``` + +```Dockerfile +FROM phpearth/php:7.3-nginx + +COPY php.ini $PHP_INI_DIR/conf.d/my-app.ini +``` + #### Missing extension? In case you'd need an additional extension in the PHP.earth repository, [open an issue](https://github.com/phpearth/docker-php/issues). diff --git a/docker/7.0-apache.Dockerfile b/docker/7.0-apache.Dockerfile index 6cb5d76..601b7bf 100644 --- a/docker/7.0-apache.Dockerfile +++ b/docker/7.0-apache.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.0, Apache, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.0 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.0 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.0 \ php7.0-phar \ php7.0-bcmath \ php7.0-calendar \ @@ -50,7 +54,8 @@ ENV \ curl \ ca-certificates \ runit \ - apache2" + apache2 \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.0-cgi.Dockerfile b/docker/7.0-cgi.Dockerfile index bea87a9..dbfd8a6 100644 --- a/docker/7.0-cgi.Dockerfile +++ b/docker/7.0-cgi.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CGI 7.0, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.0 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.0 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.0 \ php7.0-phar \ php7.0-bcmath \ php7.0-calendar \ @@ -49,7 +53,8 @@ ENV \ php7.0-cgi \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.0-cli.Dockerfile b/docker/7.0-cli.Dockerfile index 3cafaee..aa2dde6 100644 --- a/docker/7.0-cli.Dockerfile +++ b/docker/7.0-cli.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.0, additional PHP extensions, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.0 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.0 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.0 \ php7.0-phar \ php7.0-bcmath \ php7.0-calendar \ @@ -47,7 +51,8 @@ ENV \ php7.0-json \ php7.0-posix \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.0-lighttpd.Dockerfile b/docker/7.0-lighttpd.Dockerfile index a85c022..a6a5a56 100644 --- a/docker/7.0-lighttpd.Dockerfile +++ b/docker/7.0-lighttpd.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.0, Lighttpd, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="lighttpd \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.0 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + lighttpd \ php7.0 \ php7.0-phar \ php7.0-bcmath \ @@ -50,7 +54,8 @@ ENV \ php7.0-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.0-litespeed.Dockerfile b/docker/7.0-litespeed.Dockerfile index 4ca939f..0f8ba54 100644 --- a/docker/7.0-litespeed.Dockerfile +++ b/docker/7.0-litespeed.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.0, OpenLiteSpeed, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="curl \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.0 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + curl \ ca-certificates \ runit \ php7.0 \ @@ -50,7 +54,8 @@ ENV \ php7.0-json \ php7.0-posix \ php7.0-litespeed \ - litespeed" + litespeed \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.0-nginx.Dockerfile b/docker/7.0-nginx.Dockerfile index aef059f..eb219a3 100644 --- a/docker/7.0-nginx.Dockerfile +++ b/docker/7.0-nginx.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.0, Nginx, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="nginx \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.0 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + nginx \ nginx-mod-http-headers-more \ php7.0 \ php7.0-phar \ @@ -51,7 +55,8 @@ ENV \ php7.0-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.0.Dockerfile b/docker/7.0.Dockerfile index 3920e2c..f5ab0fc 100644 --- a/docker/7.0.Dockerfile +++ b/docker/7.0.Dockerfile @@ -12,13 +12,18 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.0, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.0 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.0 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.0 \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.1-apache.Dockerfile b/docker/7.1-apache.Dockerfile index 6122c48..8ec0835 100644 --- a/docker/7.1-apache.Dockerfile +++ b/docker/7.1-apache.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.1, Apache, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.1 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.1 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.1 \ php7.1-phar \ php7.1-bcmath \ php7.1-calendar \ @@ -50,7 +54,8 @@ ENV \ curl \ ca-certificates \ runit \ - apache2" + apache2 \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.1-cgi.Dockerfile b/docker/7.1-cgi.Dockerfile index a419af1..47baeda 100644 --- a/docker/7.1-cgi.Dockerfile +++ b/docker/7.1-cgi.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CGI 7.1, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.1 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.1 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.1 \ php7.1-phar \ php7.1-bcmath \ php7.1-calendar \ @@ -49,7 +53,8 @@ ENV \ php7.1-cgi \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.1-cli.Dockerfile b/docker/7.1-cli.Dockerfile index 0bb743a..eeef5aa 100644 --- a/docker/7.1-cli.Dockerfile +++ b/docker/7.1-cli.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.1, additional PHP extensions, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.1 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.1 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.1 \ php7.1-phar \ php7.1-bcmath \ php7.1-calendar \ @@ -47,7 +51,8 @@ ENV \ php7.1-json \ php7.1-posix \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.1-lighttpd.Dockerfile b/docker/7.1-lighttpd.Dockerfile index c140be9..d574adc 100644 --- a/docker/7.1-lighttpd.Dockerfile +++ b/docker/7.1-lighttpd.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.1, Lighttpd, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="lighttpd \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.1 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + lighttpd \ php7.1 \ php7.1-phar \ php7.1-bcmath \ @@ -50,7 +54,8 @@ ENV \ php7.1-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.1-litespeed.Dockerfile b/docker/7.1-litespeed.Dockerfile index b68c396..4cdcb9d 100644 --- a/docker/7.1-litespeed.Dockerfile +++ b/docker/7.1-litespeed.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.1, OpenLiteSpeed, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="curl \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.1 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + curl \ ca-certificates \ runit \ php7.1 \ @@ -50,7 +54,8 @@ ENV \ php7.1-json \ php7.1-posix \ php7.1-litespeed \ - litespeed" + litespeed \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.1-nginx.Dockerfile b/docker/7.1-nginx.Dockerfile index 4381996..e60cc92 100644 --- a/docker/7.1-nginx.Dockerfile +++ b/docker/7.1-nginx.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.1, Nginx, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="nginx \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.1 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + nginx \ nginx-mod-http-headers-more \ php7.1 \ php7.1-phar \ @@ -51,7 +55,8 @@ ENV \ php7.1-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.1.Dockerfile b/docker/7.1.Dockerfile index 25c52a9..aa2687a 100644 --- a/docker/7.1.Dockerfile +++ b/docker/7.1.Dockerfile @@ -12,13 +12,18 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.1, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.1 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.1 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.1 \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.2-apache.Dockerfile b/docker/7.2-apache.Dockerfile index cfc2628..07de2e7 100644 --- a/docker/7.2-apache.Dockerfile +++ b/docker/7.2-apache.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.2, Apache, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.2 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.2 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.2 \ php7.2-phar \ php7.2-bcmath \ php7.2-calendar \ @@ -50,7 +54,8 @@ ENV \ curl \ ca-certificates \ runit \ - apache2" + apache2 \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.2-cgi.Dockerfile b/docker/7.2-cgi.Dockerfile index c24f4ab..5f5187d 100644 --- a/docker/7.2-cgi.Dockerfile +++ b/docker/7.2-cgi.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CGI 7.2, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.2 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.2 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.2 \ php7.2-phar \ php7.2-bcmath \ php7.2-calendar \ @@ -49,7 +53,8 @@ ENV \ php7.2-cgi \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.2-cli.Dockerfile b/docker/7.2-cli.Dockerfile index 4b799e0..65037d6 100644 --- a/docker/7.2-cli.Dockerfile +++ b/docker/7.2-cli.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.2, additional PHP extensions, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.2 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.2 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.2 \ php7.2-phar \ php7.2-bcmath \ php7.2-calendar \ @@ -47,7 +51,8 @@ ENV \ php7.2-json \ php7.2-posix \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.2-lighttpd.Dockerfile b/docker/7.2-lighttpd.Dockerfile index 78990f8..f459480 100644 --- a/docker/7.2-lighttpd.Dockerfile +++ b/docker/7.2-lighttpd.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.2, Lighttpd, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="lighttpd \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.2 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + lighttpd \ php7.2 \ php7.2-phar \ php7.2-bcmath \ @@ -50,7 +54,8 @@ ENV \ php7.2-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.2-litespeed.Dockerfile b/docker/7.2-litespeed.Dockerfile index ef08c5a..ea5ff47 100644 --- a/docker/7.2-litespeed.Dockerfile +++ b/docker/7.2-litespeed.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.2, OpenLiteSpeed, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="curl \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.2 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + curl \ ca-certificates \ runit \ php7.2 \ @@ -50,7 +54,8 @@ ENV \ php7.2-json \ php7.2-posix \ php7.2-litespeed \ - litespeed" + litespeed \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.2-nginx.Dockerfile b/docker/7.2-nginx.Dockerfile index a7ffe4c..14a5e77 100644 --- a/docker/7.2-nginx.Dockerfile +++ b/docker/7.2-nginx.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.2, Nginx, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="nginx \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.2 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + nginx \ nginx-mod-http-headers-more \ php7.2 \ php7.2-phar \ @@ -51,7 +55,8 @@ ENV \ php7.2-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.2.Dockerfile b/docker/7.2.Dockerfile index d8fff79..4727810 100644 --- a/docker/7.2.Dockerfile +++ b/docker/7.2.Dockerfile @@ -12,13 +12,18 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.2, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.2 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.2 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.2 \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.3-apache.Dockerfile b/docker/7.3-apache.Dockerfile index 4a3f291..70253b2 100644 --- a/docker/7.3-apache.Dockerfile +++ b/docker/7.3-apache.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.3, Apache, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.3 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.3 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.3 \ php7.3-phar \ php7.3-bcmath \ php7.3-calendar \ @@ -50,7 +54,8 @@ ENV \ curl \ ca-certificates \ runit \ - apache2" + apache2 \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.3-cgi.Dockerfile b/docker/7.3-cgi.Dockerfile index c188270..38b64a1 100644 --- a/docker/7.3-cgi.Dockerfile +++ b/docker/7.3-cgi.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CGI 7.3, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.3 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.3 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.3 \ php7.3-phar \ php7.3-bcmath \ php7.3-calendar \ @@ -49,7 +53,8 @@ ENV \ php7.3-cgi \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.3-cli.Dockerfile b/docker/7.3-cli.Dockerfile index 8bc92f3..23eff6a 100644 --- a/docker/7.3-cli.Dockerfile +++ b/docker/7.3-cli.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.3, additional PHP extensions, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.3 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.3 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.3 \ php7.3-phar \ php7.3-bcmath \ php7.3-calendar \ @@ -47,7 +51,8 @@ ENV \ php7.3-json \ php7.3-posix \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.3-lighttpd.Dockerfile b/docker/7.3-lighttpd.Dockerfile index db0448c..16bacc0 100644 --- a/docker/7.3-lighttpd.Dockerfile +++ b/docker/7.3-lighttpd.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.3, Lighttpd, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="lighttpd \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.3 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + lighttpd \ php7.3 \ php7.3-phar \ php7.3-bcmath \ @@ -50,7 +54,8 @@ ENV \ php7.3-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.3-litespeed.Dockerfile b/docker/7.3-litespeed.Dockerfile index 3496946..17876ac 100644 --- a/docker/7.3-litespeed.Dockerfile +++ b/docker/7.3-litespeed.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.3, OpenLiteSpeed, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="curl \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.3 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + curl \ ca-certificates \ runit \ php7.3 \ @@ -50,7 +54,8 @@ ENV \ php7.3-json \ php7.3-posix \ php7.3-litespeed \ - litespeed" + litespeed \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.3-nginx.Dockerfile b/docker/7.3-nginx.Dockerfile index f71b31c..ae41876 100644 --- a/docker/7.3-nginx.Dockerfile +++ b/docker/7.3-nginx.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.3, Nginx, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="nginx \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.3 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + nginx \ nginx-mod-http-headers-more \ php7.3 \ php7.3-phar \ @@ -51,7 +55,8 @@ ENV \ php7.3-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.3.Dockerfile b/docker/7.3.Dockerfile index 2063e0f..d6d1fcd 100644 --- a/docker/7.3.Dockerfile +++ b/docker/7.3.Dockerfile @@ -12,13 +12,18 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.3, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.3 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.3 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.3 \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.4-apache.Dockerfile b/docker/7.4-apache.Dockerfile index 7ae40a5..249309c 100644 --- a/docker/7.4-apache.Dockerfile +++ b/docker/7.4-apache.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.4, Apache, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.4 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.4 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.4 \ php7.4-phar \ php7.4-bcmath \ php7.4-calendar \ @@ -50,7 +54,8 @@ ENV \ curl \ ca-certificates \ runit \ - apache2" + apache2 \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.4-cgi.Dockerfile b/docker/7.4-cgi.Dockerfile index 852144e..d1a0e40 100644 --- a/docker/7.4-cgi.Dockerfile +++ b/docker/7.4-cgi.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CGI 7.4, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.4 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.4 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.4 \ php7.4-phar \ php7.4-bcmath \ php7.4-calendar \ @@ -49,7 +53,8 @@ ENV \ php7.4-cgi \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.4-cli.Dockerfile b/docker/7.4-cli.Dockerfile index edcde17..171ce82 100644 --- a/docker/7.4-cli.Dockerfile +++ b/docker/7.4-cli.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.4, additional PHP extensions, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.4 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.4 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.4 \ php7.4-phar \ php7.4-bcmath \ php7.4-calendar \ @@ -47,7 +51,8 @@ ENV \ php7.4-json \ php7.4-posix \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.4-lighttpd.Dockerfile b/docker/7.4-lighttpd.Dockerfile index e9fed12..6c3a91e 100644 --- a/docker/7.4-lighttpd.Dockerfile +++ b/docker/7.4-lighttpd.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.4, Lighttpd, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="lighttpd \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.4 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + lighttpd \ php7.4 \ php7.4-phar \ php7.4-bcmath \ @@ -50,7 +54,8 @@ ENV \ php7.4-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.4-litespeed.Dockerfile b/docker/7.4-litespeed.Dockerfile index 18daeb2..1995620 100644 --- a/docker/7.4-litespeed.Dockerfile +++ b/docker/7.4-litespeed.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.4, OpenLiteSpeed, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="curl \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.4 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + curl \ ca-certificates \ runit \ php7.4 \ @@ -50,7 +54,8 @@ ENV \ php7.4-json \ php7.4-posix \ php7.4-litespeed \ - litespeed" + litespeed \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.4-nginx.Dockerfile b/docker/7.4-nginx.Dockerfile index f693d9e..27cc492 100644 --- a/docker/7.4-nginx.Dockerfile +++ b/docker/7.4-nginx.Dockerfile @@ -12,11 +12,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.4, Nginx, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="nginx \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.4 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + nginx \ nginx-mod-http-headers-more \ php7.4 \ php7.4-phar \ @@ -51,7 +55,8 @@ ENV \ php7.4-fpm \ curl \ ca-certificates \ - runit" + runit \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub diff --git a/docker/7.4.Dockerfile b/docker/7.4.Dockerfile index 8fec522..7d5df07 100644 --- a/docker/7.4.Dockerfile +++ b/docker/7.4.Dockerfile @@ -12,13 +12,18 @@ LABEL org.label-schema.build-date=$BUILD_DATE \ org.label-schema.description="Docker For PHP Developers - Docker image with PHP CLI 7.4, and Alpine" \ org.label-schema.url="https://github.com/phpearth/docker-php" -ENV \ - # When using Composer, disable the warning about running commands as root/super user - COMPOSER_ALLOW_SUPERUSER=1 \ - # Persistent runtime dependencies - DEPS="php7.4 \ +# PHP_INI_DIR to be symmetrical with official php docker image +ENV PHP_INI_DIR /etc/php/7.4 + +# When using Composer, disable the warning about running commands as root/super user +ENV COMPOSER_ALLOW_SUPERUSER=1 + +# Persistent runtime dependencies +ARG DEPS="\ + php7.4 \ curl \ - ca-certificates" + ca-certificates \ +" # PHP.earth Alpine repository for better developer experience ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub