diff --git a/Dockerfile b/Dockerfile index f3bbcd0f..bf19212f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM php:7.4.5-fpm-alpine3.11 +FROM php:8.1.2-fpm-alpine3.15 -LABEL maintainer="Ric Harvey " +LABEL maintainer="Ric Harvey " ENV php_conf /usr/local/etc/php-fpm.conf ENV fpm_conf /usr/local/etc/php-fpm.d/www.conf ENV php_vars /usr/local/etc/php/conf.d/docker-vars.ini -ENV NGINX_VERSION 1.16.1 +ENV NGINX_VERSION 1.21.6 ENV LUA_MODULE_VERSION 0.10.14 -ENV DEVEL_KIT_MODULE_VERSION 0.3.0 -ENV GEOIP2_MODULE_VERSION 3.2 +ENV DEVEL_KIT_MODULE_VERSION 0.3.1 +ENV GEOIP2_MODULE_VERSION 3.3 ENV LUAJIT_LIB=/usr/lib ENV LUAJIT_INC=/usr/include/luajit-2.1 @@ -180,6 +180,7 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo git \ python3 \ python3-dev \ + py3-pip \ augeas-dev \ libressl-dev \ ca-certificates \ @@ -201,11 +202,12 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo postgresql-dev && \ docker-php-ext-configure gd \ --with-freetype \ - --with-jpeg && \ + --with-jpeg #curl iconv session #docker-php-ext-install pdo_mysql pdo_sqlite mysqli mcrypt gd exif intl xsl json soap dom zip opcache && \ - docker-php-ext-install iconv pdo_mysql pdo_sqlite pgsql pdo_pgsql mysqli gd exif intl xsl json soap dom zip opcache && \ - pecl install xdebug-2.9.2 && \ + # docker-php-ext-install iconv pdo_mysql pdo_sqlite pgsql pdo_pgsql mysqli gd exif intl xsl json soap dom zip opcache && \ +RUN docker-php-ext-install iconv pdo_mysql mysqli pdo_sqlite pgsql pdo_pgsql exif intl && \ + pecl install xdebug-3.1.2 && \ pecl install -o -f redis && \ echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini && \ docker-php-source delete && \ @@ -215,8 +217,8 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo mkdir -p /var/log/supervisor && \ php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ php composer-setup.php --quiet --install-dir=/usr/bin --filename=composer && \ - rm composer-setup.php && \ - pip3 install -U pip && \ + rm composer-setup.php &&\ + # pip3 install -U pip && \ pip3 install -U certbot && \ mkdir -p /etc/letsencrypt/webrootauth && \ apk del gcc musl-dev linux-headers libffi-dev augeas-dev python3-dev make autoconf diff --git a/README.md b/README.md index f35accc0..408872c9 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,6 @@ ![docker hub](https://img.shields.io/docker/pulls/richarvey/nginx-php-fpm.svg?style=flat-square) ![docker hub](https://img.shields.io/docker/stars/richarvey/nginx-php-fpm.svg?style=flat-square) -## Please open pull requests and issues on [https://gitlab.com/ric_harvey/nginx-php-fpm](https://gitlab.com/ric_harvey/nginx-php-fpm) - ## Overview This is a Dockerfile/image to build a container for nginx and php-fpm, with the ability to pull website code from git when the container is created, as well as allowing the container to push and pull changes to the code to and from git. The container also has the ability to update templated files with variables passed to docker in order to update your code and settings. There is support for lets encrypt SSL configurations, custom nginx configs, core nginx/PHP variable overrides for running preferences, X-Forwarded-For headers and UID mapping for local volume support. @@ -12,7 +10,7 @@ If you have improvements or suggestions please open an issue or pull request on ### Versioning | Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version | |-----|-------|-----|--------|--------| -| latest/1.9.1 | Master Branch |1.16.1 | 7.4.5 | 3.11 | +| latest/2.0.0 | Master Branch |1.21.6 | 8.1.2 | 3.15 | For other tags please see: [versioning](https://gitlab.com/ric_harvey/nginx-php-fpm/blob/master/docs/versioning.md) diff --git a/docs/versioning.md b/docs/versioning.md index 3724a588..f2cd6dd5 100644 --- a/docs/versioning.md +++ b/docs/versioning.md @@ -13,17 +13,23 @@ We will use the [semver](http://ricostacruz.com/cheatsheets/semver.html) style n The latest tag will always follow the master branch in git. the other versions will have releases attached. -#### PHP 7.4 +#### PHP 8.x | Docker Tag | PHP Version | Nginx Version | Alpine Version | Container Scripts | Notes | |-----|-------|-----|--------|--------|----------| -| 1.9.0 | 7.4.2 |1.16.1 | 3.11 | 0.3.13 | upgrade to PHP 7.4.2 | -| 1.9.1 | 7.4.5 |1.16.1 | 3.11 | 0.3.13 | upgrade to PHP 7.4.5 | +| 2.0.0 | 8.1.2 |1.21.6 | 3.15 | 0.3.14 | upgrade to PHP 8 | -These tags will be created on GitLab and as tags in docker hub. +These tags will be created on GitHub and as tags in docker hub. ### Unmaintained tags: +#### PHP 7.4 + +| Docker Tag | PHP Version | Nginx Version | Alpine Version | Container Scripts | Notes | +|-----|-------|-----|--------|--------|----------| +| 1.9.0 | 7.4.2 |1.16.1 | 3.11 | 0.3.13 | upgrade to PHP 7.4.2 | +| 1.9.1 | 7.4.5 |1.16.1 | 3.11 | 0.3.13 | upgrade to PHP 7.4.5 | + #### PHP 7.3 | Docker Tag | PHP Version | Nginx Version | Alpine Version | Container Scripts | Notes |