11FROM alpine:3.18
22LABEL 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
66RUN 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 \
3838COPY 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
4545COPY 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
5959RUN 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
6666RUN 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
7070COPY wp-config.php /usr/src/wordpress
0 commit comments