Skip to content

Commit f367e1c

Browse files
committed
Upgrade to Alpine Linux 3.19 and PHP8.3
1 parent c782d7e commit f367e1c

File tree

3 files changed

+35
-35
lines changed

3 files changed

+35
-35
lines changed

Dockerfile

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
1-
FROM alpine:3.18
1+
FROM alpine:3.19
22
LABEL Maintainer="Tim de Pater <code@trafex.nl>" \
3-
Description="Lightweight WordPress container with Nginx 1.24 & PHP-FPM 8.2 based on Alpine Linux."
3+
Description="Lightweight WordPress container with Nginx 1.24 & PHP-FPM 8.3 based on Alpine Linux."
44

55
# Install packages
66
RUN apk --no-cache add \
7-
php82 \
8-
php82-fpm \
9-
php82-mysqli \
10-
php82-json \
11-
php82-openssl \
12-
php82-curl \
13-
php82-zlib \
14-
php82-xml \
15-
php82-phar \
16-
php82-intl \
17-
php82-dom \
18-
php82-xmlreader \
19-
php82-xmlwriter \
20-
php82-exif \
21-
php82-fileinfo \
22-
php82-sodium \
23-
php82-gd \
24-
php82-simplexml \
25-
php82-ctype \
26-
php82-mbstring \
27-
php82-zip \
28-
php82-opcache \
29-
php82-iconv \
30-
php82-pecl-imagick \
31-
php82-session \
32-
php82-tokenizer \
7+
php83 \
8+
php83-fpm \
9+
php83-mysqli \
10+
php83-json \
11+
php83-openssl \
12+
php83-curl \
13+
php83-zlib \
14+
php83-xml \
15+
php83-phar \
16+
php83-intl \
17+
php83-dom \
18+
php83-xmlreader \
19+
php83-xmlwriter \
20+
php83-exif \
21+
php83-fileinfo \
22+
php83-sodium \
23+
php83-gd \
24+
php83-simplexml \
25+
php83-ctype \
26+
php83-mbstring \
27+
php83-zip \
28+
php83-opcache \
29+
php83-iconv \
30+
php83-pecl-imagick \
31+
php83-session \
32+
php83-tokenizer \
3333
nginx \
3434
supervisor \
3535
curl \
@@ -40,8 +40,8 @@ RUN apk --no-cache add \
4040
COPY config/nginx.conf /etc/nginx/nginx.conf
4141

4242
# Configure PHP-FPM
43-
COPY config/fpm-pool.conf /etc/php82/php-fpm.d/zzz_custom.conf
44-
COPY config/php.ini /etc/php82/conf.d/zzz_custom.ini
43+
COPY config/fpm-pool.conf /etc/php83/php-fpm.d/zzz_custom.conf
44+
COPY config/php.ini /etc/php83/conf.d/zzz_custom.ini
4545

4646
# Configure supervisord
4747
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
@@ -65,7 +65,7 @@ RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_VER
6565
&& chown -R nobody.nobody /usr/src/wordpress
6666

6767
# Create symlink for php
68-
RUN ln -s /usr/bin/php82 /usr/bin/php
68+
RUN ln -s /usr/bin/php83 /usr/bin/php
6969

7070
# Add WP CLI
7171
RUN curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# WordPress Docker Container
33

4-
Lightweight WordPress container with Nginx 1.24 & PHP-FPM 8.2 based on Alpine Linux.
4+
Lightweight WordPress container with Nginx 1.24 & PHP-FPM 8.3 based on Alpine Linux.
55

66
_WordPress version currently installed:_ **6.4.2**
77

@@ -12,13 +12,13 @@ _WordPress version currently installed:_ **6.4.2**
1212
* Multi-platform, supporting AMD4, ARMv6, ARMv7, ARM64
1313
* Built on the lightweight Alpine Linux distribution
1414
* Small Docker image size (+/-90MB)
15-
* Uses PHP 8.2 for the best performance, low cpu usage & memory footprint
15+
* Uses PHP 8.3 for the best performance, low cpu usage & memory footprint
1616
* Can safely be updated without losing data
1717
* Fully configurable because wp-config.php uses the environment variables you can pass as an argument to the container
1818

1919
[![Docker Pulls](https://img.shields.io/docker/pulls/trafex/wordpress.svg)](https://hub.docker.com/r/trafex/wordpress/)
2020
![nginx 1.24](https://img.shields.io/badge/nginx-1.24-brightgreen.svg)
21-
![php 8.2](https://img.shields.io/badge/php-8.0-brightgreen.svg)
21+
![php 8.3](https://img.shields.io/badge/php-8.3-brightgreen.svg)
2222
![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)
2323

2424
## [![Trafex Consultancy](https://timdepater.com/logo/mini-logo.png)](https://timdepater.com?mtm_campaign=github)

config/supervisord.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ logfile=/var/log/supervisord.log
44
pidfile=/run/supervisord.pid
55

66
[program:php-fpm]
7-
command=php-fpm82 -F
7+
command=php-fpm83 -F
88
stdout_logfile=/dev/stdout
99
stdout_logfile_maxbytes=0
1010
redirect_stderr=true

0 commit comments

Comments
 (0)