aboutsummaryrefslogtreecommitdiff
path: root/Docker
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-06-07 17:53:47 +0200
committerGravatar GitHub <noreply@github.com> 2021-06-07 17:53:47 +0200
commit483b6eb33357540f96dfd36695254475ae15c5f8 (patch)
tree6ea70f3fdb0449760948a0540bf66841b83140a0 /Docker
parente02d1cd311cedd2a09e5fdf0db94ae2eb20efccc (diff)
Drop PHP5 and IE11 (#3666)
* Drop PHP5 and IE11 https://github.com/FreshRSS/FreshRSS/discussions/3321 Our Docker :oldest is now based on Alpine 3.5 (2016-12-22) * More uniform * More changelog
Diffstat (limited to 'Docker')
-rw-r--r--Docker/Dockerfile-Oldest11
1 files changed, 6 insertions, 5 deletions
diff --git a/Docker/Dockerfile-Oldest b/Docker/Dockerfile-Oldest
index bcdac6f18..b54d8bbe7 100644
--- a/Docker/Dockerfile-Oldest
+++ b/Docker/Dockerfile-Oldest
@@ -1,12 +1,12 @@
-FROM alpine:3.4
+FROM alpine:3.5
ENV TZ UTC
SHELL ["/bin/ash", "-eo", "pipefail", "-c"]
RUN apk add --no-cache \
- apache2 php5-apache2 \
- php5 php5-curl php5-gmp php5-intl php5-xml php5-zip \
- php5-ctype php5-dom php5-iconv php5-json php5-opcache php5-openssl php5-phar php5-xmlreader php5-zlib \
- php5-pdo_sqlite php5-pdo_mysql php5-pdo_pgsql
+ apache2 php7-apache2 \
+ php7 php7-curl php7-gmp php7-intl php7-mbstring php7-xml php7-zip \
+ php7-ctype php7-dom php7-iconv php7-json php7-opcache php7-openssl php7-phar php7-session php7-xmlreader php7-zlib \
+ php7-pdo_sqlite php7-pdo_mysql php7-pdo_pgsql
RUN 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/php7 /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' \