From db33cd79b5b4386b607647b0f64408810182e695 Mon Sep 17 00:00:00 2001 From: nodiscc Date: Thu, 11 Aug 2022 13:24:12 +0200 Subject: [PATCH] update docker images to use PHP 8 - fixes https://github.com/shaarli/Shaarli/issues/1868 --- Dockerfile | 36 ++++++++++++++++++------------------ Dockerfile.armhf | 36 ++++++++++++++++++------------------ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6fdfb1f7..6d4341e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,29 +32,29 @@ LABEL maintainer="Shaarli Community" RUN apk --update --no-cache add \ ca-certificates \ nginx \ - php7 \ - php7-ctype \ - php7-curl \ - php7-fpm \ - php7-gd \ - php7-iconv \ - php7-intl \ - php7-json \ - php7-mbstring \ - php7-openssl \ - php7-session \ - php7-xml \ - php7-simplexml \ - php7-zlib \ + php8 \ + php8-ctype \ + php8-curl \ + php8-fpm \ + php8-gd \ + php8-iconv \ + php8-intl \ + php8-json \ + php8-mbstring \ + php8-openssl \ + php8-session \ + php8-xml \ + php8-simplexml \ + php8-zlib \ s6 COPY .docker/nginx.conf /etc/nginx/nginx.conf -COPY .docker/php-fpm.conf /etc/php7/php-fpm.conf +COPY .docker/php-fpm.conf /etc/php8/php-fpm.conf COPY .docker/services.d /etc/services.d -RUN rm -rf /etc/php7/php-fpm.d/www.conf \ - && sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php7/php.ini \ - && sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php7/php.ini +RUN rm -rf /etc/php8/php-fpm.d/www.conf \ + && sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php8/php.ini \ + && sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php8/php.ini WORKDIR /var/www diff --git a/Dockerfile.armhf b/Dockerfile.armhf index b76295fd..1f3df9f6 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -12,7 +12,7 @@ RUN apk --update --no-cache add py2-pip \ # - Resolve PHP dependencies with Composer FROM arm32v6/alpine:3.16 as composer COPY --from=docs /usr/src/app/shaarli /app/shaarli -RUN apk --update --no-cache add php7-curl php7-mbstring php7-simplexml composer \ +RUN apk --update --no-cache add php8-curl php8-mbstring php8-simplexml composer \ && cd /app/shaarli \ && composer --prefer-dist --no-dev install @@ -34,28 +34,28 @@ LABEL maintainer="Shaarli Community" RUN apk --update --no-cache add \ ca-certificates \ nginx \ - php7 \ - php7-ctype \ - php7-curl \ - php7-fpm \ - php7-gd \ - php7-iconv \ - php7-intl \ - php7-json \ - php7-mbstring \ - php7-openssl \ - php7-session \ - php7-xml \ - php7-zlib \ + php8 \ + php8-ctype \ + php8-curl \ + php8-fpm \ + php8-gd \ + php8-iconv \ + php8-intl \ + php8-json \ + php8-mbstring \ + php8-openssl \ + php8-session \ + php8-xml \ + php8-zlib \ s6 COPY .docker/nginx.conf /etc/nginx/nginx.conf -COPY .docker/php-fpm.conf /etc/php7/php-fpm.conf +COPY .docker/php-fpm.conf /etc/php8/php-fpm.conf COPY .docker/services.d /etc/services.d -RUN rm -rf /etc/php7/php-fpm.d/www.conf \ - && sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php7/php.ini \ - && sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php7/php.ini +RUN rm -rf /etc/php8/php-fpm.d/www.conf \ + && sed -i 's/post_max_size.*/post_max_size = 10M/' /etc/php8/php.ini \ + && sed -i 's/upload_max_filesize.*/upload_max_filesize = 10M/' /etc/php8/php.ini WORKDIR /var/www