mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-22 09:13:26 +00:00
[PHP] Update base to Alpine 3.24, build PECL extensions from GitHub
This commit is contained in:
2 files changed
+15
-8
No files matched your search
@@ -1,4 +1,4 @@
|
|||||||
FROM php:8.2-fpm-alpine3.21
|
FROM php:8.2-fpm-alpine3.24
|
||||||
|
|
||||||
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
|
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
|
||||||
|
|
||||||
@@ -47,6 +47,7 @@ RUN apk add -U --no-cache autoconf \
|
|||||||
libressl-dev \
|
libressl-dev \
|
||||||
librsvg \
|
librsvg \
|
||||||
libtool \
|
libtool \
|
||||||
|
libwebp \
|
||||||
libwebp-dev \
|
libwebp-dev \
|
||||||
libxml2-dev \
|
libxml2-dev \
|
||||||
libxpm \
|
libxpm \
|
||||||
@@ -63,13 +64,16 @@ RUN apk add -U --no-cache autoconf \
|
|||||||
samba-client \
|
samba-client \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
tzdata \
|
tzdata \
|
||||||
&& pecl install APCu-${APCU_PECL_VERSION} \
|
&& docker-php-source extract \
|
||||||
&& pecl install imagick-${IMAGICK_PECL_VERSION} \
|
# PECL extensions from their GitHub tags (pecl.php.net is not reliable enough for builds)
|
||||||
&& pecl install mailparse-${MAILPARSE_PECL_VERSION} \
|
&& mkdir -p /usr/src/php/ext/apcu /usr/src/php/ext/imagick /usr/src/php/ext/mailparse /usr/src/php/ext/memcached /usr/src/php/ext/redis \
|
||||||
&& pecl install memcached-${MEMCACHED_PECL_VERSION} \
|
&& curl -fsSL https://github.com/krakjoe/apcu/archive/refs/tags/v${APCU_PECL_VERSION}.tar.gz | tar -xz --strip-components=1 -C /usr/src/php/ext/apcu \
|
||||||
&& pecl install redis-${REDIS_PECL_VERSION} \
|
&& curl -fsSL https://github.com/Imagick/imagick/archive/refs/tags/${IMAGICK_PECL_VERSION}.tar.gz | tar -xz --strip-components=1 -C /usr/src/php/ext/imagick \
|
||||||
&& docker-php-ext-enable apcu imagick memcached mailparse redis \
|
&& sed -i "s/@PACKAGE_VERSION@/${IMAGICK_PECL_VERSION}/" /usr/src/php/ext/imagick/php_imagick.h \
|
||||||
&& pecl clear-cache \
|
&& curl -fsSL https://github.com/php/pecl-mail-mailparse/archive/refs/tags/v${MAILPARSE_PECL_VERSION}.tar.gz | tar -xz --strip-components=1 -C /usr/src/php/ext/mailparse \
|
||||||
|
&& curl -fsSL https://github.com/php-memcached-dev/php-memcached/archive/refs/tags/v${MEMCACHED_PECL_VERSION}.tar.gz | tar -xz --strip-components=1 -C /usr/src/php/ext/memcached \
|
||||||
|
&& curl -fsSL https://github.com/phpredis/phpredis/archive/refs/tags/${REDIS_PECL_VERSION}.tar.gz | tar -xz --strip-components=1 -C /usr/src/php/ext/redis \
|
||||||
|
&& docker-php-ext-install -j 4 apcu imagick mailparse memcached redis \
|
||||||
&& docker-php-ext-configure intl \
|
&& docker-php-ext-configure intl \
|
||||||
&& docker-php-ext-configure exif \
|
&& docker-php-ext-configure exif \
|
||||||
&& docker-php-ext-configure gd --with-freetype=/usr/include/ \
|
&& docker-php-ext-configure gd --with-freetype=/usr/include/ \
|
||||||
@@ -83,6 +87,7 @@ RUN apk add -U --no-cache autoconf \
|
|||||||
&& curl --silent --show-error https://getcomposer.org/installer | php -- --version=${COMPOSER_VERSION} \
|
&& curl --silent --show-error https://getcomposer.org/installer | php -- --version=${COMPOSER_VERSION} \
|
||||||
&& mv composer.phar /usr/local/bin/composer \
|
&& mv composer.phar /usr/local/bin/composer \
|
||||||
&& chmod +x /usr/local/bin/composer \
|
&& chmod +x /usr/local/bin/composer \
|
||||||
|
&& docker-php-source delete \
|
||||||
&& apk del --purge autoconf \
|
&& apk del --purge autoconf \
|
||||||
aspell-dev \
|
aspell-dev \
|
||||||
cyrus-sasl-dev \
|
cyrus-sasl-dev \
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
max_execution_time = 3600
|
max_execution_time = 3600
|
||||||
max_input_time = 3600
|
max_input_time = 3600
|
||||||
memory_limit = 512M
|
memory_limit = 512M
|
||||||
|
; not used by mailcow, disabled as hardening (PHP security release 2026-10-21)
|
||||||
|
session.upload_progress.enabled = Off
|
||||||
Reference in new issue
Block a user