A free, self-hostable news aggregator…
Docker: Alpine 3.13 with PHP 8 (#3375)
Alexandre Alapetitebf639f9b9841
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 452d5f301..81208ac16 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -28,8 +28,9 @@* Note: needed for MySQL 8+ with default authentication settings* Deployment* Docker: use Apache `remoteip` to log the client remote IP instead of the local proxy IP [#3226](https://github.com/FreshRSS/FreshRSS/pull/3226)- * New Docker development image based on `alpine:edge` to test future supported PHP 8.0 version [#3294](https://github.com/FreshRSS/FreshRSS/pull/3294)- * Note: needed for MySQL 8+ with default authentication settings+ * Docker: Alpine image updated to 3.13 with PHP 8.0.1 and Apache 2.4.46 [#3375](https://github.com/FreshRSS/FreshRSS/pull/3375)+ * Note: needed for MySQL 8+ with default authentication settings [#3191](https://github.com/FreshRSS/FreshRSS/issues/3191)+ * New Docker development image based on `alpine:edge` to test the latest PHP 8+ version [#3294](https://github.com/FreshRSS/FreshRSS/pull/3294)* New Docker development image based on `alpine:3.4` to test oldest supported PHP 5.36 version [#3274](https://github.com/FreshRSS/FreshRSS/pull/3274)* Security* Auto-renew login cookie [#3287](https://github.com/FreshRSS/FreshRSS/pull/3287)diff --git a/Docker/Dockerfile-Alpine b/Docker/Dockerfile-Alpineindex df3e2f3ed..53f8f8464 100644--- a/Docker/Dockerfile-Alpine+++ b/Docker/Dockerfile-Alpine@@ -1,12 +1,12 @@-FROM alpine:3.12+FROM alpine:3.13ENV TZ UTCSHELL ["/bin/ash", "-eo", "pipefail", "-c"]RUN apk add --no-cache \- apache2 php7-apache2 \- php7 php7-curl php7-gmp php7-intl php7-mbstring php7-xml php7-zip \- php7-ctype php7-dom php7-fileinfo php7-iconv php7-json php7-opcache php7-phar php7-session php7-simplexml php7-xmlreader php7-xmlwriter php7-tokenizer php7-zlib \- php7-pdo_sqlite php7-pdo_mysql php7-pdo_pgsql+ apache2 php8-apache2 \+ php8 php8-curl php8-gmp php8-intl php8-mbstring php8-xml php8-zip \+ php8-ctype php8-dom php8-fileinfo php8-iconv php8-json php8-opcache php8-phar php8-session php8-simplexml php8-xmlreader php8-xmlwriter php8-tokenizer php8-zlib \+ php8-pdo_sqlite php8-pdo_mysql php8-pdo_pgsqlRUN mkdir -p /var/www/FreshRSS /run/apache2/WORKDIR /var/www/FreshRSS@@ -38,6 +38,7 @@ RUN rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \/etc/apache2/httpd.conf && \sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" \/etc/apache2/httpd.conf && \+ if [ ! -f /usr/bin/php ]; then ln -s /usr/bin/php8 /usr/bin/php; else true; fi && \touch /var/www/FreshRSS/Docker/env.txt && \echo "27,57 * * * * . /var/www/FreshRSS/Docker/env.txt; \su apache -s /bin/sh -c 'php /var/www/FreshRSS/app/actualize_script.php' \diff --git a/Docker/Dockerfile-Newest b/Docker/Dockerfile-Newestindex 26e8e9c5e..55fa0db78 100644--- a/Docker/Dockerfile-Newest+++ b/Docker/Dockerfile-Newest@@ -38,9 +38,6 @@ RUN rm -f /etc/apache2/conf.d/languages.conf /etc/apache2/conf.d/info.conf \/etc/apache2/httpd.conf && \sed -r -i "/^\s*(CustomLog|ErrorLog|Listen) /s/^/#/" \/etc/apache2/httpd.conf && \- # https://bugs.php.net/bug.php?id=78681 \- sed -r -i "s/php8_module/php_module/" \- /etc/apache2/conf.d/php8-module.conf && \if [ ! -f /usr/bin/php ]; then ln -s /usr/bin/php8 /usr/bin/php; else true; fi && \touch /var/www/FreshRSS/Docker/env.txt && \echo "27,57 * * * * . /var/www/FreshRSS/Docker/env.txt; \