2
0
Fork 0
mirror of https://github.com/friendica/docker synced 2025-12-07 13:57:07 +01:00

Upgraded the Debian version to bookworm

This commit is contained in:
ne20002 2025-02-25 17:35:03 +00:00
commit 4218eb3a97
No known key found for this signature in database
GPG key ID: 429E95F6E49B54C8
11 changed files with 68 additions and 51 deletions

View file

@ -1,4 +1,4 @@
FROM php:%%PHP_VERSION%%-%%VARIANT%%-bullseye
FROM php:%%PHP_VERSION%%-%%VARIANT%%-bookworm
# entrypoint.sh and cron.sh dependencies
RUN set -ex; \
@ -74,7 +74,7 @@ RUN set -ex; \
libmagickcore-6.q16-6-extra \
; \
\
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
\
docker-php-ext-configure gd \
--with-freetype \
@ -100,7 +100,7 @@ RUN set -ex; \
# pecl will claim success even if one install fails, so we need to perform each install separately
pecl install apcu-%%APCU_VERSION%%; \
pecl install memcached-%%MEMCACHED_VERSION%%; \
pecl install redis-%%REDIS_VERSION%%; \
pecl install redis-%%REDIS_VERSION%% --configureoptions 'enable-redis-zstd="yes" enable-redis-lz4="yes"'; \
pecl install imagick-%%IMAGICK_VERSION%%; \
\
docker-php-ext-enable \
@ -109,12 +109,13 @@ RUN set -ex; \
redis \
imagick \
; \
rm -r /tmp/pear; \
\
# reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies
apt-mark auto '.*' > /dev/null; \
apt-mark manual $savedAptMark; \
ldd "$(php -r 'echo ini_get("extension_dir");')"/*.so \
| awk '/=>/ { print $3 }' \
| awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \
| sort -u \
| xargs -r dpkg-query -S \
| cut -d: -f1 \
@ -134,7 +135,9 @@ RUN set -ex; \
echo 'opcache.max_accelerated_files=10000'; \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.save_comments=1'; \
echo 'opcache.revalidte_freq=1'; \
echo 'opcache.revalidte_freq=60'; \
echo 'opcache.jit=tracing'; \
echo 'opcache.jit_buffer_size=32M'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
\
{ \