From bacc2ec4b843f8cb0d745939574e9122e814450b Mon Sep 17 00:00:00 2001 From: Tim de Pater Date: Thu, 22 Oct 2026 06:53:32 +0200 Subject: [PATCH 1/2] Upgrade to PHP 8.5 OPcache is built into PHP 8.5, so the separate opcache package is dropped. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01DzBw89s7veFcCqE8b6opMg --- Dockerfile | 59 ++++++++++++++++++++--------------------- README.md | 6 ++--- config/supervisord.conf | 2 +- 3 files changed, 33 insertions(+), 34 deletions(-) diff --git a/Dockerfile b/Dockerfile index 120563d7..e4aaa131 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,37 +14,36 @@ LABEL org.opencontainers.image.source="https://github.com/TrafeX/docker-wordpres LABEL org.opencontainers.image.version="${VERSION}" LABEL org.opencontainers.image.revision="${VCS_REF}" LABEL org.opencontainers.image.vendor="TrafeX" -LABEL org.opencontainers.image.title="WordPress with Nginx 1.28 & PHP-FPM 8.4" -LABEL org.opencontainers.image.description="Lightweight WordPress container with Nginx 1.28 & PHP-FPM 8.4 based on Alpine Linux." +LABEL org.opencontainers.image.title="WordPress with Nginx 1.28 & PHP-FPM 8.5" +LABEL org.opencontainers.image.description="Lightweight WordPress container with Nginx 1.28 & PHP-FPM 8.5 based on Alpine Linux." # Install packages RUN apk --no-cache add \ - 'php84>=8.4.27' \ - 'php84-fpm>=8.4.27' \ - php84-mysqli \ - php84-json \ - php84-openssl \ - php84-curl \ - php84-zlib \ - php84-xml \ - php84-phar \ - php84-intl \ - php84-dom \ - php84-xmlreader \ - php84-xmlwriter \ - php84-exif \ - php84-fileinfo \ - php84-sodium \ - php84-gd \ - php84-simplexml \ - php84-ctype \ - php84-mbstring \ - php84-zip \ - php84-opcache \ - php84-iconv \ - php84-pecl-imagick \ - php84-session \ - php84-tokenizer \ + 'php85>=8.5.12' \ + 'php85-fpm>=8.5.12' \ + php85-mysqli \ + php85-json \ + php85-openssl \ + php85-curl \ + php85-zlib \ + php85-xml \ + php85-phar \ + php85-intl \ + php85-dom \ + php85-xmlreader \ + php85-xmlwriter \ + php85-exif \ + php85-fileinfo \ + php85-sodium \ + php85-gd \ + php85-simplexml \ + php85-ctype \ + php85-mbstring \ + php85-zip \ + php85-iconv \ + php85-pecl-imagick \ + php85-session \ + php85-tokenizer \ nginx \ supervisor \ curl \ @@ -55,8 +54,8 @@ RUN apk --no-cache add \ COPY config/nginx.conf /etc/nginx/nginx.conf # Configure PHP-FPM -COPY config/fpm-pool.conf /etc/php84/php-fpm.d/zzz_custom.conf -COPY config/php.ini /etc/php84/conf.d/zzz_custom.ini +COPY config/fpm-pool.conf /etc/php85/php-fpm.d/zzz_custom.conf +COPY config/php.ini /etc/php85/conf.d/zzz_custom.ini # Configure supervisord COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf diff --git a/README.md b/README.md index f176632d..219ce26e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # WordPress Docker Container -Lightweight WordPress container with Nginx 1.28 & PHP-FPM 8.4 based on Alpine Linux. +Lightweight WordPress container with Nginx 1.28 & PHP-FPM 8.5 based on Alpine Linux. _WordPress version currently installed:_ **7.1.3** @@ -11,13 +11,13 @@ _WordPress version currently installed:_ **7.1.3** - Multi-platform, supporting AMD4, ARMv6, ARMv7, ARM64 - Built on the lightweight Alpine Linux distribution - Small Docker image size (+/-90MB) -- Uses PHP 8.4 for the best performance, low cpu usage & memory footprint +- Uses PHP 8.5 for the best performance, low cpu usage & memory footprint - Can safely be updated without losing data - Fully configurable because wp-config.php uses the environment variables you can pass as an argument to the container [![Docker Pulls](https://img.shields.io/docker/pulls/trafex/wordpress.svg)](https://hub.docker.com/r/trafex/wordpress/) ![nginx 1.28](https://img.shields.io/badge/nginx-1.28-brightgreen.svg) -![php 8.4](https://img.shields.io/badge/php-8.4-brightgreen.svg) +![php 8.5](https://img.shields.io/badge/php-8.5-brightgreen.svg) ![License MIT](https://img.shields.io/badge/license-MIT-blue.svg) ## [![Trafex Consultancy](https://timdepater.com/logo/mini-logo.png)](https://timdepater.com?mtm_campaign=github) diff --git a/config/supervisord.conf b/config/supervisord.conf index 45c0c78d..df10418a 100644 --- a/config/supervisord.conf +++ b/config/supervisord.conf @@ -4,7 +4,7 @@ logfile=/var/log/supervisord.log pidfile=/run/supervisord.pid [program:php-fpm] -command=php-fpm84 -F +command=php-fpm85 -F stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 redirect_stderr=true From 6856ea0887ad185ca54e684666cfe1b80d8dc4ba Mon Sep 17 00:00:00 2001 From: Tim de Pater Date: Thu, 22 Oct 2026 07:01:45 +0200 Subject: [PATCH 2/2] Update nginx version in labels and README to 1.30 Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01DzBw89s7veFcCqE8b6opMg --- Dockerfile | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index e4aaa131..e1068d95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,8 @@ LABEL org.opencontainers.image.source="https://github.com/TrafeX/docker-wordpres LABEL org.opencontainers.image.version="${VERSION}" LABEL org.opencontainers.image.revision="${VCS_REF}" LABEL org.opencontainers.image.vendor="TrafeX" -LABEL org.opencontainers.image.title="WordPress with Nginx 1.28 & PHP-FPM 8.5" -LABEL org.opencontainers.image.description="Lightweight WordPress container with Nginx 1.28 & PHP-FPM 8.5 based on Alpine Linux." +LABEL org.opencontainers.image.title="WordPress with Nginx 1.30 & PHP-FPM 8.5" +LABEL org.opencontainers.image.description="Lightweight WordPress container with Nginx 1.30 & PHP-FPM 8.5 based on Alpine Linux." # Install packages RUN apk --no-cache add \ diff --git a/README.md b/README.md index 219ce26e..67cf0f47 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # WordPress Docker Container -Lightweight WordPress container with Nginx 1.28 & PHP-FPM 8.5 based on Alpine Linux. +Lightweight WordPress container with Nginx 1.30 & PHP-FPM 8.5 based on Alpine Linux. _WordPress version currently installed:_ **7.1.3** @@ -16,7 +16,7 @@ _WordPress version currently installed:_ **7.1.3** - Fully configurable because wp-config.php uses the environment variables you can pass as an argument to the container [![Docker Pulls](https://img.shields.io/docker/pulls/trafex/wordpress.svg)](https://hub.docker.com/r/trafex/wordpress/) -![nginx 1.28](https://img.shields.io/badge/nginx-1.28-brightgreen.svg) +![nginx 1.30](https://img.shields.io/badge/nginx-1.30-brightgreen.svg) ![php 8.5](https://img.shields.io/badge/php-8.5-brightgreen.svg) ![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)