Skip to content

Commit 747f04c

Browse files
committed
Upgrade Alpine Linux to 3.18, Nginx to 1.24, PHP to 8.1
1 parent 27d5cbc commit 747f04c

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

Dockerfile

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,33 @@
1-
FROM alpine:3.16
1+
FROM alpine:3.18
22
LABEL Maintainer="Tim de Pater <code@trafex.nl>" \
3-
Description="Lightweight WordPress container with Nginx 1.22 & PHP-FPM 8.0 based on Alpine Linux."
3+
Description="Lightweight WordPress container with Nginx 1.24 & PHP-FPM 8.1 based on Alpine Linux."
44

55
# Install packages
66
RUN apk --no-cache add \
7-
php8 \
8-
php8-fpm \
9-
php8-mysqli \
10-
php8-json \
11-
php8-openssl \
12-
php8-curl \
13-
php8-zlib \
14-
php8-xml \
15-
php8-phar \
16-
php8-intl \
17-
php8-dom \
18-
php8-xmlreader \
19-
php8-xmlwriter \
20-
php8-exif \
21-
php8-fileinfo \
22-
php8-sodium \
23-
php8-gd \
24-
php8-simplexml \
25-
php8-ctype \
26-
php8-mbstring \
27-
php8-zip \
28-
php8-opcache \
29-
php8-iconv \
30-
php8-pecl-imagick \
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 \
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/php8/php-fpm.d/zzz_custom.conf
42-
COPY config/php.ini /etc/php8/conf.d/zzz_custom.ini
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
4343

4444
# Configure supervisord
4545
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf

README.md

Lines changed: 4 additions & 4 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.0 based on Alpine Linux.
4+
Lightweight WordPress container with Nginx 1.22 & PHP-FPM 8.1 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.0 for better performance, lower cpu usage & memory footprint
15+
* Uses PHP 8.1 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/)
20-
![nginx 1.20](https://img.shields.io/badge/nginx-1.22-brightgreen.svg)
21-
![php 8.0](https://img.shields.io/badge/php-8.0-brightgreen.svg)
20+
![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)
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-fpm8 -F
7+
command=php-fpm81 -F
88
stdout_logfile=/dev/stdout
99
stdout_logfile_maxbytes=0
1010
redirect_stderr=true

docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: '3.5'
22

33
services:
44
db:
5-
image: mariadb:10.3
5+
image: mariadb:10.11
66
volumes:
77
- "db-data:/var/lib/mysql"
88
environment:
@@ -18,7 +18,7 @@ services:
1818
volumes:
1919
- "site-data:/var/www/wp-content"
2020
ports:
21-
- "80:80"
21+
- "8123:80"
2222
environment:
2323
DB_HOST: db
2424
DB_PASSWORD: wordpress

0 commit comments

Comments
 (0)