Merge pull request #64 from linuxserver/php-rollback

This commit is contained in:
Adam 2023-06-03 15:24:15 +01:00 committed by GitHub
commit b1b16cd5d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 28 deletions

View file

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.18
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:3.17
# set version label
ARG BUILD_DATE
@ -17,19 +17,24 @@ RUN \
imagemagick \
libjpeg-turbo-utils \
mediainfo \
php82-apcu \
php82-cgi \
php82-dom \
php82-exif \
php82-gd \
php82-ldap \
php82-mysqli \
php82-mysqlnd \
php82-pear \
php82-pecl-imagick \
php82-xsl \
php81-apcu \
php81-cgi \
php81-ctype \
php81-curl \
php81-dom \
php81-exif \
php81-gd \
php81-ldap \
php81-mysqli \
php81-mysqlnd \
php81-pear \
php81-pecl-imagick \
php81-xsl \
php81-zip \
poppler-utils \
re2c && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
php81-pecl-xmlrpc && \
echo "**** download piwigo ****" && \
if [ -z ${PIWIGO_RELEASE+x} ]; then \
PIWIGO_RELEASE=$(curl -sX GET "https://api.github.com/repos/Piwigo/Piwigo/releases/latest" \
@ -42,9 +47,9 @@ RUN \
unzip -q /tmp/piwigo.zip -d /tmp && \
mv /tmp/piwigo/* /app/www/public && \
# The max filesize is 2M by default, which is way to small for most photos
sed -ri 's/^upload_max_filesize = .*/upload_max_filesize = 100M/' /etc/php82/php.ini && \
sed -ri 's/^upload_max_filesize = .*/upload_max_filesize = 100M/' /etc/php81/php.ini && \
# The max post size is 8M by default, it must be at least max_filesize
sed -ri 's/^post_max_size = .*/post_max_size = 100M/' /etc/php82/php.ini && \
sed -ri 's/^post_max_size = .*/post_max_size = 100M/' /etc/php81/php.ini && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*

View file

@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.18
FROM ghcr.io/linuxserver/baseimage-alpine-nginx:arm64v8-3.17
# set version label
ARG BUILD_DATE
@ -17,19 +17,24 @@ RUN \
imagemagick \
libjpeg-turbo-utils \
mediainfo \
php82-apcu \
php82-cgi \
php82-dom \
php82-exif \
php82-gd \
php82-ldap \
php82-mysqli \
php82-mysqlnd \
php82-pear \
php82-pecl-imagick \
php82-xsl \
php81-apcu \
php81-cgi \
php81-ctype \
php81-curl \
php81-dom \
php81-exif \
php81-gd \
php81-ldap \
php81-mysqli \
php81-mysqlnd \
php81-pear \
php81-pecl-imagick \
php81-xsl \
php81-zip \
poppler-utils \
re2c && \
apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
php81-pecl-xmlrpc && \
echo "**** download piwigo ****" && \
if [ -z ${PIWIGO_RELEASE+x} ]; then \
PIWIGO_RELEASE=$(curl -sX GET "https://api.github.com/repos/Piwigo/Piwigo/releases/latest" \
@ -42,9 +47,9 @@ RUN \
unzip -q /tmp/piwigo.zip -d /tmp && \
mv /tmp/piwigo/* /app/www/public && \
# The max filesize is 2M by default, which is way to small for most photos
sed -ri 's/^upload_max_filesize = .*/upload_max_filesize = 100M/' /etc/php82/php.ini && \
sed -ri 's/^upload_max_filesize = .*/upload_max_filesize = 100M/' /etc/php81/php.ini && \
# The max post size is 8M by default, it must be at least max_filesize
sed -ri 's/^post_max_size = .*/post_max_size = 100M/' /etc/php82/php.ini && \
sed -ri 's/^post_max_size = .*/post_max_size = 100M/' /etc/php81/php.ini && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*

View file

@ -229,6 +229,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
## Versions
* **03.06.23:** - Revert to Alpine 3.17 due to compatibility issues with php 8.2.
* **25.05.23:** - Rebase to Alpine 3.18, deprecate armhf.
* **20.01.23:** - Rebase to alpine 3.17 with php8.1.
* **16.01.23:** - Fix broken custom template persistence.

View file

@ -37,6 +37,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "03.06.23:", desc: "Revert to Alpine 3.17 due to compatibility issues with php 8.2." }
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
- { date: "20.01.23:", desc: "Rebase to alpine 3.17 with php8.1." }
- { date: "16.01.23:", desc: "Fix broken custom template persistence." }