Skip to content

Commit 7be04d9

Browse files
MarkCenturionTrafeX
authored andcommitted
Update to PHP 8.4
1 parent 43aa4be commit 7be04d9

File tree

5 files changed

+30
-30
lines changed

5 files changed

+30
-30
lines changed

Dockerfile

+21-21
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
1-
ARG ALPINE_VERSION=3.20
1+
ARG ALPINE_VERSION=3.21
22
FROM alpine:${ALPINE_VERSION}
33
LABEL Maintainer="Tim de Pater <[email protected]>"
4-
LABEL Description="Lightweight container with Nginx 1.26 & PHP 8.3 based on Alpine Linux."
4+
LABEL Description="Lightweight container with Nginx 1.26 & PHP 8.4 based on Alpine Linux."
55
# Setup document root
66
WORKDIR /var/www/html
77

88
# Install packages and remove default server definition
99
RUN apk add --no-cache \
1010
curl \
1111
nginx \
12-
php83 \
13-
php83-ctype \
14-
php83-curl \
15-
php83-dom \
16-
php83-fileinfo \
17-
php83-fpm \
18-
php83-gd \
19-
php83-intl \
20-
php83-mbstring \
21-
php83-mysqli \
22-
php83-opcache \
23-
php83-openssl \
24-
php83-phar \
25-
php83-session \
26-
php83-tokenizer \
27-
php83-xml \
28-
php83-xmlreader \
29-
php83-xmlwriter \
12+
php84 \
13+
php84-ctype \
14+
php84-curl \
15+
php84-dom \
16+
php84-fileinfo \
17+
php84-fpm \
18+
php84-gd \
19+
php84-intl \
20+
php84-mbstring \
21+
php84-mysqli \
22+
php84-opcache \
23+
php84-openssl \
24+
php84-phar \
25+
php84-session \
26+
php84-tokenizer \
27+
php84-xml \
28+
php84-xmlreader \
29+
php84-xmlwriter \
3030
supervisor
3131

3232
# Configure nginx - http
@@ -35,7 +35,7 @@ COPY config/nginx.conf /etc/nginx/nginx.conf
3535
COPY config/conf.d /etc/nginx/conf.d/
3636

3737
# Configure PHP-FPM
38-
ENV PHP_INI_DIR /etc/php83
38+
ENV PHP_INI_DIR /etc/php84
3939
COPY config/fpm-pool.conf ${PHP_INI_DIR}/php-fpm.d/www.conf
4040
COPY config/php.ini ${PHP_INI_DIR}/conf.d/custom.ini
4141

README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
# Docker PHP-FPM 8.3 & Nginx 1.26 on Alpine Linux
2-
Example PHP-FPM 8.3 & Nginx 1.26 container image for Docker, built on [Alpine Linux](https://www.alpinelinux.org/).
1+
# Docker PHP-FPM 8.4 & Nginx 1.26 on Alpine Linux
2+
Example PHP-FPM 8.4 & Nginx 1.26 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.3 for the best performance, low CPU usage & memory footprint
10+
* Uses PHP 8.4 for the best performance, low CPU usage & memory footprint
1111
* Optimized for 100 concurrent users
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.26](https://img.shields.io/badge/nginx-1.26-brightgreen.svg)
19-
![php 8.3](https://img.shields.io/badge/php-8.3-brightgreen.svg)
19+
![php 8.4](https://img.shields.io/badge/php-8.4-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)
@@ -53,11 +53,11 @@ Nginx configuration:
5353

5454
PHP configuration:
5555

56-
docker run -v "`pwd`/php-setting.ini:/etc/php83/conf.d/settings.ini" trafex/php-nginx
56+
docker run -v "`pwd`/php-setting.ini:/etc/php84/conf.d/settings.ini" trafex/php-nginx
5757

5858
PHP-FPM configuration:
5959

60-
docker run -v "`pwd`/php-fpm-settings.conf:/etc/php83/php-fpm.d/server.conf" trafex/php-nginx
60+
docker run -v "`pwd`/php-fpm-settings.conf:/etc/php84/php-fpm.d/server.conf" trafex/php-nginx
6161

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

config/supervisord.conf

+1-1
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-fpm83 -F
8+
command=php-fpm84 -F
99
stdout_logfile=/dev/stdout
1010
stdout_logfile_maxbytes=0
1111
stderr_logfile=/dev/stderr

docs/xdebug-support.md

+1-1
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 php83-pecl-xdebug
30+
RUN apk add --no-cache php84-pecl-xdebug
3131

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

run_tests.sh

+1-1
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.3'
3+
curl --silent --fail http://app:8080 | grep 'PHP 8.4'

0 commit comments

Comments
 (0)