Skip to content

Commit 3b5a07a

Browse files
committed
Upgrade to PHP 8.2
1 parent 747f04c commit 3b5a07a

File tree

3 files changed

+36
-36
lines changed

3 files changed

+36
-36
lines changed

Dockerfile

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
11
FROM alpine:3.18
22
LABEL Maintainer="Tim de Pater <[email protected]>" \
3-
Description="Lightweight WordPress container with Nginx 1.24 & PHP-FPM 8.1 based on Alpine Linux."
3+
Description="Lightweight WordPress container with Nginx 1.24 & PHP-FPM 8.2 based on Alpine Linux."
44

55
# Install packages
66
RUN apk --no-cache add \
7-
php81 \
8-
php81-fpm \
9-
php81-mysqli \
10-
php81-json \
11-
php81-openssl \
12-
php81-curl \
13-
php81-zlib \
14-
php81-xml \
15-
php81-phar \
16-
php81-intl \
17-
php81-dom \
18-
php81-xmlreader \
19-
php81-xmlwriter \
20-
php81-exif \
21-
php81-fileinfo \
22-
php81-sodium \
23-
php81-gd \
24-
php81-simplexml \
25-
php81-ctype \
26-
php81-mbstring \
27-
php81-zip \
28-
php81-opcache \
29-
php81-iconv \
30-
php81-pecl-imagick \
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 \
3131
nginx \
3232
supervisor \
3333
curl \
@@ -38,8 +38,8 @@ RUN apk --no-cache add \
3838
COPY config/nginx.conf /etc/nginx/nginx.conf
3939

4040
# Configure PHP-FPM
41-
COPY config/fpm-pool.conf /etc/php81/php-fpm.d/zzz_custom.conf
42-
COPY config/php.ini /etc/php81/conf.d/zzz_custom.ini
41+
COPY config/fpm-pool.conf /etc/php82/php-fpm.d/zzz_custom.conf
42+
COPY config/php.ini /etc/php82/conf.d/zzz_custom.ini
4343

4444
# Configure supervisord
4545
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
@@ -57,14 +57,14 @@ RUN mkdir -p /usr/src
5757

5858
# Upstream tarballs include ./wordpress/ so this gives us /usr/src/wordpress
5959
RUN curl -o wordpress.tar.gz -SL https://wordpress.org/wordpress-${WORDPRESS_VERSION}.tar.gz \
60-
&& echo "$WORDPRESS_SHA1 *wordpress.tar.gz" | sha1sum -c - \
61-
&& tar -xzf wordpress.tar.gz -C /usr/src/ \
62-
&& rm wordpress.tar.gz \
63-
&& chown -R nobody.nobody /usr/src/wordpress
60+
&& echo "$WORDPRESS_SHA1 *wordpress.tar.gz" | sha1sum -c - \
61+
&& tar -xzf wordpress.tar.gz -C /usr/src/ \
62+
&& rm wordpress.tar.gz \
63+
&& chown -R nobody.nobody /usr/src/wordpress
6464

6565
# Add WP CLI
6666
RUN curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
67-
&& chmod +x /usr/local/bin/wp
67+
&& chmod +x /usr/local/bin/wp
6868

6969
# WP config
7070
COPY wp-config.php /usr/src/wordpress

README.md

Lines changed: 3 additions & 3 deletions
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.22 & PHP-FPM 8.1 based on Alpine Linux.
4+
Lightweight WordPress container with Nginx 1.22 & PHP-FPM 8.2 based on Alpine Linux.
55

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

@@ -12,13 +12,13 @@ _WordPress version currently installed:_ **6.2.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.1 for the best performance, low cpu usage & memory footprint
15+
* Uses PHP 8.2 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.1](https://img.shields.io/badge/php-8.0-brightgreen.svg)
21+
![php 8.2](https://img.shields.io/badge/php-8.0-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

Lines changed: 1 addition & 1 deletion
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-fpm81 -F
7+
command=php-fpm82 -F
88
stdout_logfile=/dev/stdout
99
stdout_logfile_maxbytes=0
1010
redirect_stderr=true

0 commit comments

Comments
 (0)