Cette révision appartient à :
2026-01-15 22:26:10 +01:00
Parent 06ce37e940
révision 8101d4be85
18 fichiers modifiés avec 754 ajouts et 7 suppressions
+20 -7
Voir le fichier
@@ -1,6 +1,6 @@
ARG NC_VERS
FROM php:8.1-apache-bullseye
FROM php:8.2-apache-bookworm
ARG NC_VERS
ENV NEXTCLOUD_VERSION ${NC_VERS}
@@ -15,8 +15,11 @@ RUN set -ex; \
busybox-static \
libldap-common \
libmagickcore-6.q16-6-extra \
; \
rm -rf /var/lib/apt/lists/*; \
libzip4 \
libmemcached11 \
; \
rm -rf /var/lib/apt/lists/*; \
\
mkdir -p /var/spool/cron/crontabs; \
echo '*/5 * * * * php -f /var/www/html/cron.php' > /var/spool/cron/crontabs/www-data
@@ -51,11 +54,13 @@ RUN set -ex; \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure ftp --with-openssl-dir=/usr; \
docker-php-ext-configure gd --with-freetype --with-jpeg --with-webp; \
docker-php-ext-configure ldap --with-libdir="lib/$debMultiarch"; \
docker-php-ext-install -j "$(nproc)" \
bcmath \
exif \
ftp \
gd \
intl \
ldap \
@@ -70,14 +75,15 @@ RUN set -ex; \
; \
\
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install APCu-5.1.22; \
pecl install APCu-5.1.24; \
pecl install memcached-3.2.0; \
pecl install redis-6.0.0; \
pecl install redis-6.0.2; \
pecl install imagick-3.7.0; \
\
docker-php-ext-enable \
apcu \
memcached \
imagick \
redis \
bz2 \
; \
@@ -100,7 +106,7 @@ RUN { \
echo 'opcache.enable=1'; \
echo 'opcache.interned_strings_buffer=32'; \
echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.memory_consumption=256'; \
echo 'opcache.save_comments=1'; \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.jit=1255'; \
@@ -130,6 +136,13 @@ RUN a2enmod headers rewrite remoteip ;\
} > /etc/apache2/conf-available/remoteip.conf;\
a2enconf remoteip
# set apache config LimitRequestBody
ENV APACHE_BODY_LIMIT 1073741824
RUN { \
echo "LimitRequestBody ${APACHE_BODY_LIMIT}"; \
} > /etc/apache2/conf-available/apache-limits.conf; \
a2enconf apache-limits
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \