From a2ee60f3ed3d0f918d37701f91b2356b53ef04e8 Mon Sep 17 00:00:00 2001 From: Matthew Horwood Date: Mon, 29 Jan 2024 21:14:56 +0000 Subject: [PATCH] Alpine 3.19 & PHP8.2 feat: alpine 3.19 feat: php 8.2 --- Dockerfile | 14 +++++++------- setup/start.sh | 4 ++-- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 596c414..2750634 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ -FROM alpine:3.18 +FROM alpine:3.19 MAINTAINER Matthew Horwood # Install required deb packages RUN apk update && \ - apk add gnupg nginx php81-fpm php81-common php81-iconv php81-json php81-gd \ - php81-curl php81-xml php81-mysqli php81-imap php81-pdo php81-pdo_mysql \ - php81-soap php81-posix php81-gettext php81-ldap \ - php81-ctype php81-dom php81-session php81-mbstring curl \ + apk add gnupg nginx php82-fpm php82-common php82-iconv php82-json php82-gd \ + php82-curl php82-xml php82-mysqli php82-imap php82-pdo php82-pdo_mysql \ + php82-soap php82-posix php82-gettext php82-ldap \ + php82-ctype php82-dom php82-session php82-mbstring curl \ && mkdir -p /var/www/html/ \ && mkdir -p /run/nginx \ && rm -f /var/cache/apk/*; @@ -44,8 +44,8 @@ RUN set -ex; \ sed -i "s@'configFile' => ROOT_PATH . 'config.inc.php',@'configFile' => '/etc/phpmyadmin/config.inc.php',@" /usr/src/phpmyadmin/libraries/vendor_config.php; \ cp -R /usr/src/phpmyadmin/* /var/www/html/; \ cp /config/config.inc.php /etc/phpmyadmin/config.inc.php && \ - cp /config/php.ini /etc/php81/php.ini && \ - cp /config/php_fpm_site.conf /etc/php81/php-fpm.d/www.conf; \ + cp /config/php.ini /etc/php82/php.ini && \ + cp /config/php_fpm_site.conf /etc/php82/php-fpm.d/www.conf; \ chown -R nobody:nginx /var/www/html /sessions; \ cp /config/nginx_site.conf /etc/nginx/http.d/default.conf; \ cp /config/healthcheck.php /var/www/html/; diff --git a/setup/start.sh b/setup/start.sh index 660b873..2a82ebc 100755 --- a/setup/start.sh +++ b/setup/start.sh @@ -1,6 +1,6 @@ #!/bin/sh -ln -s /dev/stdout /var/log/php81/error.log +ln -s /dev/stdout /var/log/php82/error.log ln -s /dev/stdout /var/log/nginx/access.log ln -s /dev/stdout /var/log/nginx/error.log @@ -15,6 +15,6 @@ if [ ! -f /etc/phpmyadmin/config.user.inc.php ]; then touch /etc/phpmyadmin/config.user.inc.php fi -php-fpm81 +php-fpm82 exec "$@"