Skip to content

Commit f7b6348

Browse files
authored
working toward php 8.1.5 (#260)
Co-authored-by: Ric Harvey <ric@squarecows.com>
1 parent 50afaef commit f7b6348

File tree

3 files changed

+23
-17
lines changed

3 files changed

+23
-17
lines changed

Dockerfile

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
FROM php:7.4.5-fpm-alpine3.11
1+
FROM php:8.1.2-fpm-alpine3.15
22

3-
LABEL maintainer="Ric Harvey <ric@ngd.io>"
3+
LABEL maintainer="Ric Harvey <ric@squarecows.com>"
44

55
ENV php_conf /usr/local/etc/php-fpm.conf
66
ENV fpm_conf /usr/local/etc/php-fpm.d/www.conf
77
ENV php_vars /usr/local/etc/php/conf.d/docker-vars.ini
88

9-
ENV NGINX_VERSION 1.16.1
9+
ENV NGINX_VERSION 1.21.6
1010
ENV LUA_MODULE_VERSION 0.10.14
11-
ENV DEVEL_KIT_MODULE_VERSION 0.3.0
12-
ENV GEOIP2_MODULE_VERSION 3.2
11+
ENV DEVEL_KIT_MODULE_VERSION 0.3.1
12+
ENV GEOIP2_MODULE_VERSION 3.3
1313
ENV LUAJIT_LIB=/usr/lib
1414
ENV LUAJIT_INC=/usr/include/luajit-2.1
1515

@@ -180,6 +180,7 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo
180180
git \
181181
python3 \
182182
python3-dev \
183+
py3-pip \
183184
augeas-dev \
184185
libressl-dev \
185186
ca-certificates \
@@ -201,11 +202,12 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo
201202
postgresql-dev && \
202203
docker-php-ext-configure gd \
203204
--with-freetype \
204-
--with-jpeg && \
205+
--with-jpeg
205206
#curl iconv session
206207
#docker-php-ext-install pdo_mysql pdo_sqlite mysqli mcrypt gd exif intl xsl json soap dom zip opcache && \
207-
docker-php-ext-install iconv pdo_mysql pdo_sqlite pgsql pdo_pgsql mysqli gd exif intl xsl json soap dom zip opcache && \
208-
pecl install xdebug-2.9.2 && \
208+
# docker-php-ext-install iconv pdo_mysql pdo_sqlite pgsql pdo_pgsql mysqli gd exif intl xsl json soap dom zip opcache && \
209+
RUN docker-php-ext-install iconv pdo_mysql mysqli pdo_sqlite pgsql pdo_pgsql exif intl && \
210+
pecl install xdebug-3.1.2 && \
209211
pecl install -o -f redis && \
210212
echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini && \
211213
docker-php-source delete && \
@@ -215,8 +217,8 @@ RUN echo @testing http://nl.alpinelinux.org/alpine/edge/testing >> /etc/apk/repo
215217
mkdir -p /var/log/supervisor && \
216218
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
217219
php composer-setup.php --quiet --install-dir=/usr/bin --filename=composer && \
218-
rm composer-setup.php && \
219-
pip3 install -U pip && \
220+
rm composer-setup.php &&\
221+
# pip3 install -U pip && \
220222
pip3 install -U certbot && \
221223
mkdir -p /etc/letsencrypt/webrootauth && \
222224
apk del gcc musl-dev linux-headers libffi-dev augeas-dev python3-dev make autoconf

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
![docker hub](https://img.shields.io/docker/pulls/richarvey/nginx-php-fpm.svg?style=flat-square)
33
![docker hub](https://img.shields.io/docker/stars/richarvey/nginx-php-fpm.svg?style=flat-square)
44

5-
## Please open pull requests and issues on [https://gitlab.com/ric_harvey/nginx-php-fpm](https://gitlab.com/ric_harvey/nginx-php-fpm)
6-
75
## Overview
86
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.
97

@@ -12,7 +10,7 @@ If you have improvements or suggestions please open an issue or pull request on
1210
### Versioning
1311
| Docker Tag | Git Release | Nginx Version | PHP Version | Alpine Version |
1412
|-----|-------|-----|--------|--------|
15-
| latest/1.9.1 | Master Branch |1.16.1 | 7.4.5 | 3.11 |
13+
| latest/2.0.0 | Master Branch |1.21.6 | 8.1.2 | 3.15 |
1614

1715
For other tags please see: [versioning](https://gitlab.com/ric_harvey/nginx-php-fpm/blob/master/docs/versioning.md)
1816

docs/versioning.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,23 @@ We will use the [semver](http://ricostacruz.com/cheatsheets/semver.html) style n
1313

1414
The latest tag will always follow the master branch in git. the other versions will have releases attached.
1515

16-
#### PHP 7.4
16+
#### PHP 8.x
1717

1818
| Docker Tag | PHP Version | Nginx Version | Alpine Version | Container Scripts | Notes |
1919
|-----|-------|-----|--------|--------|----------|
20-
| 1.9.0 | 7.4.2 |1.16.1 | 3.11 | 0.3.13 | upgrade to PHP 7.4.2 |
21-
| 1.9.1 | 7.4.5 |1.16.1 | 3.11 | 0.3.13 | upgrade to PHP 7.4.5 |
20+
| 2.0.0 | 8.1.2 |1.21.6 | 3.15 | 0.3.14 | upgrade to PHP 8 |
2221

23-
These tags will be created on GitLab and as tags in docker hub.
22+
These tags will be created on GitHub and as tags in docker hub.
2423

2524
### Unmaintained tags:
2625

26+
#### PHP 7.4
27+
28+
| Docker Tag | PHP Version | Nginx Version | Alpine Version | Container Scripts | Notes |
29+
|-----|-------|-----|--------|--------|----------|
30+
| 1.9.0 | 7.4.2 |1.16.1 | 3.11 | 0.3.13 | upgrade to PHP 7.4.2 |
31+
| 1.9.1 | 7.4.5 |1.16.1 | 3.11 | 0.3.13 | upgrade to PHP 7.4.5 |
32+
2733
#### PHP 7.3
2834

2935
| Docker Tag | PHP Version | Nginx Version | Alpine Version | Container Scripts | Notes |

0 commit comments

Comments
 (0)