Skip to content

Commit 6b92c75

Browse files
edubarrTrafeX
authored andcommitted
Upgrade to PHP 8.5
1 parent 36727ce commit 6b92c75

File tree

5 files changed

+30
-31
lines changed

5 files changed

+30
-31
lines changed

Dockerfile

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ LABEL org.opencontainers.image.source="https://github.com/TrafeX/docker-php-ngin
1414
LABEL org.opencontainers.image.version="${VERSION}"
1515
LABEL org.opencontainers.image.revision="${VCS_REF}"
1616
LABEL org.opencontainers.image.vendor="TrafeX"
17-
LABEL org.opencontainers.image.title="PHP-FPM 8.4 & Nginx on Alpine Linux"
18-
LABEL org.opencontainers.image.description="Lightweight container with Nginx 1.28 & PHP 8.4 based on Alpine Linux."
17+
LABEL org.opencontainers.image.title="PHP-FPM 8.5 & Nginx on Alpine Linux"
18+
LABEL org.opencontainers.image.description="Lightweight container with Nginx 1.28 & PHP 8.5 based on Alpine Linux."
1919

2020
# Setup document root
2121
WORKDIR /var/www/html
@@ -24,24 +24,23 @@ WORKDIR /var/www/html
2424
RUN apk add --no-cache \
2525
curl \
2626
nginx \
27-
php84 \
28-
php84-ctype \
29-
php84-curl \
30-
php84-dom \
31-
php84-fileinfo \
32-
php84-fpm \
33-
php84-gd \
34-
php84-intl \
35-
php84-mbstring \
36-
php84-mysqli \
37-
php84-opcache \
38-
php84-openssl \
39-
php84-phar \
40-
php84-session \
41-
php84-tokenizer \
42-
php84-xml \
43-
php84-xmlreader \
44-
php84-xmlwriter \
27+
php85 \
28+
php85-ctype \
29+
php85-curl \
30+
php85-dom \
31+
php85-fileinfo \
32+
php85-fpm \
33+
php85-gd \
34+
php85-intl \
35+
php85-mbstring \
36+
php85-mysqli \
37+
php85-openssl \
38+
php85-phar \
39+
php85-session \
40+
php85-tokenizer \
41+
php85-xml \
42+
php85-xmlreader \
43+
php85-xmlwriter \
4544
supervisor
4645

4746
# Configure nginx - http
@@ -50,7 +49,7 @@ COPY config/nginx.conf /etc/nginx/nginx.conf
5049
COPY config/conf.d /etc/nginx/conf.d/
5150

5251
# Configure PHP-FPM
53-
ENV PHP_INI_DIR=/etc/php84
52+
ENV PHP_INI_DIR=/etc/php85
5453
COPY config/fpm-pool.conf ${PHP_INI_DIR}/php-fpm.d/www.conf
5554
COPY config/php.ini ${PHP_INI_DIR}/conf.d/custom.ini
5655

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Docker PHP-FPM 8.4 & Nginx 1.28 on Alpine Linux
2-
Example PHP-FPM 8.4 & Nginx 1.28 container image for Docker, built on [Alpine Linux](https://www.alpinelinux.org/).
1+
# Docker PHP-FPM 8.5 & Nginx 1.28 on Alpine Linux
2+
Example PHP-FPM 8.5 & Nginx 1.28 container image for Docker, built on [Alpine Linux](https://www.alpinelinux.org/).
33

44
Repository: https://github.com/TrafeX/docker-php-nginx
55

66

77
* Built on the lightweight and secure Alpine Linux distribution
88
* Multi-platform, supporting AMD4, ARMv6, ARMv7, ARM64
99
* Very small Docker image size (+/-40MB)
10-
* Uses PHP 8.4 for the best performance, low CPU usage & memory footprint
10+
* Uses PHP 8.5 for the best performance, low CPU usage & memory footprint
1111
* Optimized for 100 concurrent users i.e. limits the concurrent requests serving php files
1212
* Optimized to only use resources when there's traffic (by using PHP-FPM's `on-demand` process manager)
1313
* The services Nginx, PHP-FPM and supervisord run under a non-privileged user (nobody) to make it more secure
@@ -16,7 +16,7 @@ Repository: https://github.com/TrafeX/docker-php-nginx
1616

1717
[![Docker Pulls](https://img.shields.io/docker/pulls/trafex/php-nginx.svg)](https://hub.docker.com/r/trafex/php-nginx/)
1818
![nginx 1.28](https://img.shields.io/badge/nginx-1.28-brightgreen.svg)
19-
![php 8.4](https://img.shields.io/badge/php-8.4-brightgreen.svg)
19+
![php 8.5](https://img.shields.io/badge/php-8.5-brightgreen.svg)
2020
![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)
2121

2222
## [![Trafex Consultancy](https://timdepater.com/logo/mini-logo.png)](https://timdepater.com?mtm_campaign=github)
@@ -57,11 +57,11 @@ Nginx configuration:
5757

5858
PHP configuration:
5959

60-
docker run -v "`pwd`/php-setting.ini:/etc/php84/conf.d/settings.ini" trafex/php-nginx
60+
docker run -v "`pwd`/php-setting.ini:/etc/php85/conf.d/settings.ini" trafex/php-nginx
6161

6262
PHP-FPM configuration:
6363

64-
docker run -v "`pwd`/php-fpm-settings.conf:/etc/php84/php-fpm.d/server.conf" trafex/php-nginx
64+
docker run -v "`pwd`/php-fpm-settings.conf:/etc/php85/php-fpm.d/server.conf" trafex/php-nginx
6565

6666
_Note; Because `-v` requires an absolute path I've added `pwd` in the example to return the absolute path to the current directory_
6767

@@ -71,4 +71,4 @@ To modify this container to your specific needs please see the following example
7171
* [Adding xdebug support](https://github.com/TrafeX/docker-php-nginx/blob/master/docs/xdebug-support.md)
7272
* [Adding composer](https://github.com/TrafeX/docker-php-nginx/blob/master/docs/composer-support.md)
7373
* [Getting the real IP of the client behind a load balancer](https://github.com/TrafeX/docker-php-nginx/blob/master/docs/real-ip-behind-loadbalancer.md)
74-
* [Sending e-mails](https://github.com/TrafeX/docker-php-nginx/blob/master/docs/sending-emails.md)
74+
* [Sending e-mails](https://github.com/TrafeX/docker-php-nginx/blob/master/docs/sending-emails.md)

config/supervisord.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ logfile_maxbytes=0
55
pidfile=/run/supervisord.pid
66

77
[program:php-fpm]
8-
command=php-fpm84 -F
8+
command=php-fpm85 -F
99
stdout_logfile=/dev/stdout
1010
stdout_logfile_maxbytes=0
1111
stderr_logfile=/dev/stderr

docs/xdebug-support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ FROM trafex/php-nginx:latest
2727
USER root
2828

2929
# Install xdebug
30-
RUN apk add --no-cache php84-pecl-xdebug
30+
RUN apk add --no-cache php85-pecl-xdebug
3131

3232
# Add configuration
3333
COPY xdebug.ini ${PHP_INI_DIR}/conf.d/xdebug.ini

run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/usr/bin/env sh
22
apk --no-cache add curl
3-
curl --silent --fail http://app:8080 | grep 'PHP 8.4'
3+
curl --silent --fail http://app:8080 | grep 'PHP 8.5'

0 commit comments

Comments
 (0)