Update to php 8.2

This commit is contained in:
2025-03-18 11:30:20 +01:00
parent 81447a40ec
commit 04ba60dddc

View File

@@ -1,6 +1,6 @@
FROM alpine:latest FROM alpine:latest
LABEL Maintainer="Christian Steinle <kontakt@steinle-computer.de>" LABEL Maintainer="Christian Steinle <kontakt@steinle-computer.de>"
LABEL Description="Lightweight container with Nginx 1.22 & PHP 8.1 based on Alpine Linux." LABEL Description="Lightweight container with Nginx 1.22 & PHP 8.2 based on Alpine Linux."
WORKDIR /var/www/html WORKDIR /var/www/html
@@ -12,35 +12,35 @@ RUN apk update && \
apk add --no-cache \ apk add --no-cache \
curl \ curl \
nginx \ nginx \
php81 \ php82 \
php81-bcmath \ php82-bcmath \
php81-ctype \ php82-ctype \
php81-curl \ php82-curl \
php81-dom \ php82-dom \
php81-fileinfo \ php82-fileinfo \
php81-fpm \ php82-fpm \
php81-gd \ php82-gd \
php81-mbstring \ php82-mbstring \
php81-mysqli \ php82-mysqli \
php81-openssl \ php82-openssl \
php81-pdo \ php82-pdo \
php81-pdo_mysql \ php82-pdo_mysql \
php81-pdo_pgsql \ php82-pdo_pgsql \
php81-pdo_sqlite \ php82-pdo_sqlite \
php81-session \ php82-session \
php81-tokenizer \ php82-tokenizer \
php81-xml \ php82-xml \
php81-xsl \ php82-xsl \
php81-zip \ php82-zip \
supervisor supervisor
# Link to php, for calling "php artisan serve". # Link to php, for calling "php artisan serve".
RUN ln -s /usr/bin/php81 /usr/bin/php RUN ln -s /usr/bin/php82 /usr/bin/php
# Copy configuration and entrypoint. Entrypoint is needed to change nginx's document root if environement variable is given. # Copy configuration and entrypoint. Entrypoint is needed to change nginx's document root if environement variable is given.
COPY config/nginx.conf /etc/nginx/nginx.conf COPY config/nginx.conf /etc/nginx/nginx.conf
COPY config/fpm-pool.conf /etc/php81/php-fpm.d/www.conf COPY config/fpm-pool.conf /etc/php82/php-fpm.d/www.conf
COPY config/php.ini /etc/php81/conf.d/custom.ini COPY config/php.ini /etc/php82/conf.d/custom.ini
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY config/entrypoint.sh /bin/entrypoint.sh COPY config/entrypoint.sh /bin/entrypoint.sh