mirror of
https://github.com/nextcloud/docker.git
synced 2025-07-21 22:58:05 +02:00
Merge 1ccd2c1695
into 8d2e9048bc
This commit is contained in:
commit
f49cb10856
13 changed files with 212 additions and 48 deletions
|
@ -1,5 +1,8 @@
|
||||||
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
||||||
FROM php:8.2-apache-bookworm
|
FROM php:8.3-apache-bookworm
|
||||||
|
|
||||||
|
# Define the commit hash for imagick as a variable
|
||||||
|
ARG IMAGICK_COMMIT_HASH=28f27044e435a2b203e32675e942eb8de620ee58
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@ -67,9 +70,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-5.1.24; \
|
pecl install APCu-5.1.24; \
|
||||||
pecl install imagick-3.7.0; \
|
|
||||||
pecl install memcached-3.3.0; \
|
pecl install memcached-3.3.0; \
|
||||||
pecl install redis-6.1.0; \
|
pecl install -o redis-6.1.0; \
|
||||||
|
# pecl install imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apt-get install -y --no-install-recommends git libmagickwand-dev && \
|
||||||
|
git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick && \
|
||||||
|
cd /tmp/imagick && \
|
||||||
|
git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
git checkout ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h && \
|
||||||
|
phpize && ./configure && make && make install && \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false git libmagickwand-dev; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -172,4 +188,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
|
@ -1,5 +1,5 @@
|
||||||
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
|
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
|
||||||
FROM php:8.2-fpm-alpine3.21
|
FROM php:8.3-fpm-alpine3.21
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@ -64,9 +64,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-5.1.24; \
|
pecl install APCu-5.1.24; \
|
||||||
pecl install imagick-3.7.0; \
|
|
||||||
pecl install memcached-3.3.0; \
|
pecl install memcached-3.3.0; \
|
||||||
pecl install redis-6.1.0; \
|
pecl install redis-6.1.0; \
|
||||||
|
# pecl install -o imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apk add --no-cache --virtual .git-build-deps git \
|
||||||
|
&& git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick \
|
||||||
|
&& cd /tmp/imagick \
|
||||||
|
&& git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} \
|
||||||
|
&& git checkout ${IMAGICK_COMMIT_HASH} \
|
||||||
|
&& sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h \
|
||||||
|
&& phpize && ./configure && make && make install; \
|
||||||
|
apk del .git-build-deps; \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -148,4 +161,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
|
@ -1,5 +1,8 @@
|
||||||
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
||||||
FROM php:8.2-fpm-bookworm
|
FROM php:8.3-fpm-bookworm
|
||||||
|
|
||||||
|
# Define the commit hash for imagick as a variable
|
||||||
|
ARG IMAGICK_COMMIT_HASH=28f27044e435a2b203e32675e942eb8de620ee58
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@ -67,9 +70,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-5.1.24; \
|
pecl install APCu-5.1.24; \
|
||||||
pecl install imagick-3.7.0; \
|
|
||||||
pecl install memcached-3.3.0; \
|
pecl install memcached-3.3.0; \
|
||||||
pecl install redis-6.1.0; \
|
pecl install -o redis-6.1.0; \
|
||||||
|
# pecl install imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apt-get install -y --no-install-recommends git libmagickwand-dev && \
|
||||||
|
git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick && \
|
||||||
|
cd /tmp/imagick && \
|
||||||
|
git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
git checkout ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h && \
|
||||||
|
phpize && ./configure && make && make install && \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false git libmagickwand-dev; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -157,4 +173,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
|
@ -1,5 +1,8 @@
|
||||||
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
||||||
FROM php:8.2-apache-bookworm
|
FROM php:8.3-apache-bookworm
|
||||||
|
|
||||||
|
# Define the commit hash for imagick as a variable
|
||||||
|
ARG IMAGICK_COMMIT_HASH=28f27044e435a2b203e32675e942eb8de620ee58
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@ -67,9 +70,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-5.1.24; \
|
pecl install APCu-5.1.24; \
|
||||||
pecl install imagick-3.7.0; \
|
|
||||||
pecl install memcached-3.3.0; \
|
pecl install memcached-3.3.0; \
|
||||||
pecl install redis-6.1.0; \
|
pecl install -o redis-6.1.0; \
|
||||||
|
# pecl install imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apt-get install -y --no-install-recommends git libmagickwand-dev && \
|
||||||
|
git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick && \
|
||||||
|
cd /tmp/imagick && \
|
||||||
|
git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
git checkout ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h && \
|
||||||
|
phpize && ./configure && make && make install && \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false git libmagickwand-dev; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -172,4 +188,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
|
@ -1,5 +1,5 @@
|
||||||
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
|
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
|
||||||
FROM php:8.2-fpm-alpine3.21
|
FROM php:8.3-fpm-alpine3.21
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@ -64,9 +64,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-5.1.24; \
|
pecl install APCu-5.1.24; \
|
||||||
pecl install imagick-3.7.0; \
|
|
||||||
pecl install memcached-3.3.0; \
|
pecl install memcached-3.3.0; \
|
||||||
pecl install redis-6.1.0; \
|
pecl install redis-6.1.0; \
|
||||||
|
# pecl install -o imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apk add --no-cache --virtual .git-build-deps git \
|
||||||
|
&& git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick \
|
||||||
|
&& cd /tmp/imagick \
|
||||||
|
&& git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} \
|
||||||
|
&& git checkout ${IMAGICK_COMMIT_HASH} \
|
||||||
|
&& sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h \
|
||||||
|
&& phpize && ./configure && make && make install; \
|
||||||
|
apk del .git-build-deps; \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -148,4 +161,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
|
@ -1,5 +1,8 @@
|
||||||
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
||||||
FROM php:8.2-fpm-bookworm
|
FROM php:8.3-fpm-bookworm
|
||||||
|
|
||||||
|
# Define the commit hash for imagick as a variable
|
||||||
|
ARG IMAGICK_COMMIT_HASH=28f27044e435a2b203e32675e942eb8de620ee58
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@ -67,9 +70,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-5.1.24; \
|
pecl install APCu-5.1.24; \
|
||||||
pecl install imagick-3.7.0; \
|
|
||||||
pecl install memcached-3.3.0; \
|
pecl install memcached-3.3.0; \
|
||||||
pecl install redis-6.1.0; \
|
pecl install -o redis-6.1.0; \
|
||||||
|
# pecl install imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apt-get install -y --no-install-recommends git libmagickwand-dev && \
|
||||||
|
git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick && \
|
||||||
|
cd /tmp/imagick && \
|
||||||
|
git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
git checkout ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h && \
|
||||||
|
phpize && ./configure && make && make install && \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false git libmagickwand-dev; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -157,4 +173,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
|
@ -1,5 +1,8 @@
|
||||||
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
||||||
FROM php:8.2-apache-bookworm
|
FROM php:8.3-apache-bookworm
|
||||||
|
|
||||||
|
# Define the commit hash for imagick as a variable
|
||||||
|
ARG IMAGICK_COMMIT_HASH=28f27044e435a2b203e32675e942eb8de620ee58
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@ -67,9 +70,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-5.1.24; \
|
pecl install APCu-5.1.24; \
|
||||||
pecl install imagick-3.7.0; \
|
|
||||||
pecl install memcached-3.3.0; \
|
pecl install memcached-3.3.0; \
|
||||||
pecl install redis-6.1.0; \
|
pecl install -o redis-6.1.0; \
|
||||||
|
# pecl install imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apt-get install -y --no-install-recommends git libmagickwand-dev && \
|
||||||
|
git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick && \
|
||||||
|
cd /tmp/imagick && \
|
||||||
|
git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
git checkout ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h && \
|
||||||
|
phpize && ./configure && make && make install && \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false git libmagickwand-dev; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -172,4 +188,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
|
@ -1,5 +1,5 @@
|
||||||
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
|
# DO NOT EDIT: created by update.sh from Dockerfile-alpine.template
|
||||||
FROM php:8.2-fpm-alpine3.21
|
FROM php:8.3-fpm-alpine3.21
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@ -64,9 +64,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-5.1.24; \
|
pecl install APCu-5.1.24; \
|
||||||
pecl install imagick-3.7.0; \
|
|
||||||
pecl install memcached-3.3.0; \
|
pecl install memcached-3.3.0; \
|
||||||
pecl install redis-6.1.0; \
|
pecl install redis-6.1.0; \
|
||||||
|
# pecl install -o imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apk add --no-cache --virtual .git-build-deps git \
|
||||||
|
&& git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick \
|
||||||
|
&& cd /tmp/imagick \
|
||||||
|
&& git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} \
|
||||||
|
&& git checkout ${IMAGICK_COMMIT_HASH} \
|
||||||
|
&& sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h \
|
||||||
|
&& phpize && ./configure && make && make install; \
|
||||||
|
apk del .git-build-deps; \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -148,4 +161,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
|
@ -1,5 +1,8 @@
|
||||||
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
# DO NOT EDIT: created by update.sh from Dockerfile-debian.template
|
||||||
FROM php:8.2-fpm-bookworm
|
FROM php:8.3-fpm-bookworm
|
||||||
|
|
||||||
|
# Define the commit hash for imagick as a variable
|
||||||
|
ARG IMAGICK_COMMIT_HASH=28f27044e435a2b203e32675e942eb8de620ee58
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
|
@ -67,9 +70,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-5.1.24; \
|
pecl install APCu-5.1.24; \
|
||||||
pecl install imagick-3.7.0; \
|
|
||||||
pecl install memcached-3.3.0; \
|
pecl install memcached-3.3.0; \
|
||||||
pecl install redis-6.1.0; \
|
pecl install -o redis-6.1.0; \
|
||||||
|
# pecl install imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apt-get install -y --no-install-recommends git libmagickwand-dev && \
|
||||||
|
git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick && \
|
||||||
|
cd /tmp/imagick && \
|
||||||
|
git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
git checkout ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h && \
|
||||||
|
phpize && ./configure && make && make install && \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false git libmagickwand-dev; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -157,4 +173,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["php-fpm"]
|
CMD ["php-fpm"]
|
|
@ -63,9 +63,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-%%APCU_VERSION%%; \
|
pecl install APCu-%%APCU_VERSION%%; \
|
||||||
pecl install imagick-%%IMAGICK_VERSION%%; \
|
|
||||||
pecl install memcached-%%MEMCACHED_VERSION%%; \
|
pecl install memcached-%%MEMCACHED_VERSION%%; \
|
||||||
pecl install redis-%%REDIS_VERSION%%; \
|
pecl install redis-%%REDIS_VERSION%%; \
|
||||||
|
# pecl install -o imagick-3.7.0; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apk add --no-cache --virtual .git-build-deps git \
|
||||||
|
&& git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick \
|
||||||
|
&& cd /tmp/imagick \
|
||||||
|
&& git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} \
|
||||||
|
&& git checkout ${IMAGICK_COMMIT_HASH} \
|
||||||
|
&& sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h \
|
||||||
|
&& phpize && ./configure && make && make install; \
|
||||||
|
apk del .git-build-deps; \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -147,4 +160,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["%%CMD%%"]
|
CMD ["%%CMD%%"]
|
|
@ -1,5 +1,8 @@
|
||||||
FROM php:%%PHP_VERSION%%-%%VARIANT%%-%%DEBIAN_VERSION%%
|
FROM php:%%PHP_VERSION%%-%%VARIANT%%-%%DEBIAN_VERSION%%
|
||||||
|
|
||||||
|
# Define the commit hash for imagick as a variable
|
||||||
|
ARG IMAGICK_COMMIT_HASH=28f27044e435a2b203e32675e942eb8de620ee58
|
||||||
|
|
||||||
# entrypoint.sh and cron.sh dependencies
|
# entrypoint.sh and cron.sh dependencies
|
||||||
RUN set -ex; \
|
RUN set -ex; \
|
||||||
\
|
\
|
||||||
|
@ -66,9 +69,22 @@ RUN set -ex; \
|
||||||
\
|
\
|
||||||
# pecl will claim success even if one install fails, so we need to perform each install separately
|
# pecl will claim success even if one install fails, so we need to perform each install separately
|
||||||
pecl install APCu-%%APCU_VERSION%%; \
|
pecl install APCu-%%APCU_VERSION%%; \
|
||||||
pecl install imagick-%%IMAGICK_VERSION%%; \
|
|
||||||
pecl install memcached-%%MEMCACHED_VERSION%%; \
|
pecl install memcached-%%MEMCACHED_VERSION%%; \
|
||||||
pecl install redis-%%REDIS_VERSION%%; \
|
pecl install -o redis-%%REDIS_VERSION%%; \
|
||||||
|
# pecl install imagick-%%IMAGICK_VERSION%%; \
|
||||||
|
# Begin workaround ->
|
||||||
|
# The master version on the imagick repository is compatible with PHP 8.3. However, the PECL version is not updated yet.
|
||||||
|
# As soon as it will get updated, we can switch back to the PECL version, instead of having this workaround.
|
||||||
|
apt-get install -y --no-install-recommends git libmagickwand-dev && \
|
||||||
|
git clone https://github.com/imagick/imagick.git --depth 1 /tmp/imagick && \
|
||||||
|
cd /tmp/imagick && \
|
||||||
|
git fetch --depth 1 origin ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
git checkout ${IMAGICK_COMMIT_HASH} && \
|
||||||
|
sed -i "s/@PACKAGE_VERSION@/git-$(echo ${IMAGICK_COMMIT_HASH} | cut -c 1-7)/" php_imagick.h && \
|
||||||
|
phpize && ./configure && make && make install && \
|
||||||
|
cd && rm -r /tmp/imagick; \
|
||||||
|
apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false git libmagickwand-dev; \
|
||||||
|
# <- End workaround
|
||||||
\
|
\
|
||||||
docker-php-ext-enable \
|
docker-php-ext-enable \
|
||||||
apcu \
|
apcu \
|
||||||
|
@ -156,4 +172,4 @@ COPY *.sh upgrade.exclude /
|
||||||
COPY config/* /usr/src/nextcloud/config/
|
COPY config/* /usr/src/nextcloud/config/
|
||||||
|
|
||||||
ENTRYPOINT ["/entrypoint.sh"]
|
ENTRYPOINT ["/entrypoint.sh"]
|
||||||
CMD ["%%CMD%%"]
|
CMD ["%%CMD%%"]
|
|
@ -10,7 +10,7 @@ declare -A debian_version=(
|
||||||
)
|
)
|
||||||
|
|
||||||
declare -A php_version=(
|
declare -A php_version=(
|
||||||
[default]='8.2'
|
[default]='8.3'
|
||||||
)
|
)
|
||||||
|
|
||||||
declare -A cmd=(
|
declare -A cmd=(
|
||||||
|
|
|
@ -9,19 +9,19 @@
|
||||||
"variant": "apache",
|
"variant": "apache",
|
||||||
"base": "debian",
|
"base": "debian",
|
||||||
"baseVersion": "bookworm",
|
"baseVersion": "bookworm",
|
||||||
"phpVersion": "8.2"
|
"phpVersion": "8.3"
|
||||||
},
|
},
|
||||||
"fpm": {
|
"fpm": {
|
||||||
"variant": "fpm",
|
"variant": "fpm",
|
||||||
"base": "debian",
|
"base": "debian",
|
||||||
"baseVersion": "bookworm",
|
"baseVersion": "bookworm",
|
||||||
"phpVersion": "8.2"
|
"phpVersion": "8.3"
|
||||||
},
|
},
|
||||||
"fpm-alpine": {
|
"fpm-alpine": {
|
||||||
"variant": "fpm-alpine",
|
"variant": "fpm-alpine",
|
||||||
"base": "alpine",
|
"base": "alpine",
|
||||||
"baseVersion": "3.21",
|
"baseVersion": "3.21",
|
||||||
"phpVersion": "8.2"
|
"phpVersion": "8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -35,19 +35,19 @@
|
||||||
"variant": "apache",
|
"variant": "apache",
|
||||||
"base": "debian",
|
"base": "debian",
|
||||||
"baseVersion": "bookworm",
|
"baseVersion": "bookworm",
|
||||||
"phpVersion": "8.2"
|
"phpVersion": "8.3"
|
||||||
},
|
},
|
||||||
"fpm": {
|
"fpm": {
|
||||||
"variant": "fpm",
|
"variant": "fpm",
|
||||||
"base": "debian",
|
"base": "debian",
|
||||||
"baseVersion": "bookworm",
|
"baseVersion": "bookworm",
|
||||||
"phpVersion": "8.2"
|
"phpVersion": "8.3"
|
||||||
},
|
},
|
||||||
"fpm-alpine": {
|
"fpm-alpine": {
|
||||||
"variant": "fpm-alpine",
|
"variant": "fpm-alpine",
|
||||||
"base": "alpine",
|
"base": "alpine",
|
||||||
"baseVersion": "3.21",
|
"baseVersion": "3.21",
|
||||||
"phpVersion": "8.2"
|
"phpVersion": "8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -61,19 +61,19 @@
|
||||||
"variant": "apache",
|
"variant": "apache",
|
||||||
"base": "debian",
|
"base": "debian",
|
||||||
"baseVersion": "bookworm",
|
"baseVersion": "bookworm",
|
||||||
"phpVersion": "8.2"
|
"phpVersion": "8.3"
|
||||||
},
|
},
|
||||||
"fpm": {
|
"fpm": {
|
||||||
"variant": "fpm",
|
"variant": "fpm",
|
||||||
"base": "debian",
|
"base": "debian",
|
||||||
"baseVersion": "bookworm",
|
"baseVersion": "bookworm",
|
||||||
"phpVersion": "8.2"
|
"phpVersion": "8.3"
|
||||||
},
|
},
|
||||||
"fpm-alpine": {
|
"fpm-alpine": {
|
||||||
"variant": "fpm-alpine",
|
"variant": "fpm-alpine",
|
||||||
"base": "alpine",
|
"base": "alpine",
|
||||||
"baseVersion": "3.21",
|
"baseVersion": "3.21",
|
||||||
"phpVersion": "8.2"
|
"phpVersion": "8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue