Skip to content

Commit

Permalink
Upgrade to Alpine Linux 3.19 and PHP8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TrafeX committed Feb 23, 2024
1 parent c782d7e commit f367e1c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
62 changes: 31 additions & 31 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
FROM alpine:3.18
FROM alpine:3.19
LABEL Maintainer="Tim de Pater <[email protected]>" \
Description="Lightweight WordPress container with Nginx 1.24 & PHP-FPM 8.2 based on Alpine Linux."
Description="Lightweight WordPress container with Nginx 1.24 & PHP-FPM 8.3 based on Alpine Linux."

# Install packages
RUN apk --no-cache add \
php82 \
php82-fpm \
php82-mysqli \
php82-json \
php82-openssl \
php82-curl \
php82-zlib \
php82-xml \
php82-phar \
php82-intl \
php82-dom \
php82-xmlreader \
php82-xmlwriter \
php82-exif \
php82-fileinfo \
php82-sodium \
php82-gd \
php82-simplexml \
php82-ctype \
php82-mbstring \
php82-zip \
php82-opcache \
php82-iconv \
php82-pecl-imagick \
php82-session \
php82-tokenizer \
php83 \
php83-fpm \
php83-mysqli \
php83-json \
php83-openssl \
php83-curl \
php83-zlib \
php83-xml \
php83-phar \
php83-intl \
php83-dom \
php83-xmlreader \
php83-xmlwriter \
php83-exif \
php83-fileinfo \
php83-sodium \
php83-gd \
php83-simplexml \
php83-ctype \
php83-mbstring \
php83-zip \
php83-opcache \
php83-iconv \
php83-pecl-imagick \
php83-session \
php83-tokenizer \
nginx \
supervisor \
curl \
Expand All @@ -40,8 +40,8 @@ RUN apk --no-cache add \
COPY config/nginx.conf /etc/nginx/nginx.conf

# Configure PHP-FPM
COPY config/fpm-pool.conf /etc/php82/php-fpm.d/zzz_custom.conf
COPY config/php.ini /etc/php82/conf.d/zzz_custom.ini
COPY config/fpm-pool.conf /etc/php83/php-fpm.d/zzz_custom.conf
COPY config/php.ini /etc/php83/conf.d/zzz_custom.ini

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

# Create symlink for php
RUN ln -s /usr/bin/php82 /usr/bin/php
RUN ln -s /usr/bin/php83 /usr/bin/php

# Add WP CLI
RUN curl -o /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar \
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# WordPress Docker Container

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

_WordPress version currently installed:_ **6.4.2**

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

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

## [![Trafex Consultancy](https://timdepater.com/logo/mini-logo.png)](https://timdepater.com?mtm_campaign=github)
Expand Down
2 changes: 1 addition & 1 deletion config/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ logfile=/var/log/supervisord.log
pidfile=/run/supervisord.pid

[program:php-fpm]
command=php-fpm82 -F
command=php-fpm83 -F
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
redirect_stderr=true
Expand Down

0 comments on commit f367e1c

Please sign in to comment.