mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-21 18:28:13 +00:00
120 lines
4.1 KiB
Docker
120 lines
4.1 KiB
Docker
FROM php:8.2-fpm-alpine3.24
|
|
|
|
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
|
|
|
|
# renovate: datasource=github-tags depName=krakjoe/apcu versioning=semver-coerced extractVersion=^v(?<version>.*)$
|
|
ARG APCU_PECL_VERSION=5.1.28
|
|
# renovate: datasource=github-tags depName=Imagick/imagick versioning=semver-coerced extractVersion=(?<version>.*)$
|
|
ARG IMAGICK_PECL_VERSION=3.8.1
|
|
# renovate: datasource=github-tags depName=php/pecl-mail-mailparse versioning=semver-coerced extractVersion=^v(?<version>.*)$
|
|
ARG MAILPARSE_PECL_VERSION=3.2.0
|
|
# renovate: datasource=github-tags depName=php-memcached-dev/php-memcached versioning=semver-coerced extractVersion=^v(?<version>.*)$
|
|
ARG MEMCACHED_PECL_VERSION=3.4.0
|
|
# renovate: datasource=github-tags depName=phpredis/phpredis versioning=semver-coerced extractVersion=(?<version>.*)$
|
|
ARG REDIS_PECL_VERSION=6.3.0
|
|
# renovate: datasource=github-tags depName=composer/composer versioning=semver-coerced extractVersion=(?<version>.*)$
|
|
ARG COMPOSER_VERSION=2.10.2
|
|
|
|
RUN apk add -U --no-cache autoconf \
|
|
aspell-dev \
|
|
aspell-libs \
|
|
bash \
|
|
c-client \
|
|
cyrus-sasl-dev \
|
|
freetype \
|
|
freetype-dev \
|
|
g++ \
|
|
git \
|
|
gettext \
|
|
gettext-dev \
|
|
gmp-dev \
|
|
gnupg \
|
|
icu-dev \
|
|
icu-libs \
|
|
imagemagick \
|
|
imagemagick-dev \
|
|
imap-dev \
|
|
jq \
|
|
libavif \
|
|
libavif-dev \
|
|
libjpeg-turbo \
|
|
libjpeg-turbo-dev \
|
|
libmemcached \
|
|
libmemcached-dev \
|
|
libpng \
|
|
libpng-dev \
|
|
libressl \
|
|
libressl-dev \
|
|
librsvg \
|
|
libtool \
|
|
libwebp \
|
|
libwebp-dev \
|
|
libxml2-dev \
|
|
libxpm \
|
|
libxpm-dev \
|
|
libzip \
|
|
libzip-dev \
|
|
linux-headers \
|
|
make \
|
|
mysql-client \
|
|
openldap-dev \
|
|
pcre-dev \
|
|
re2c \
|
|
redis \
|
|
samba-client \
|
|
zlib-dev \
|
|
tzdata \
|
|
&& docker-php-source extract \
|
|
# PECL extensions from their GitHub tags (pecl.php.net is not reliable enough for builds)
|
|
&& 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 \
|
|
&& 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 \
|
|
&& 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 \
|
|
&& sed -i "s/@PACKAGE_VERSION@/${IMAGICK_PECL_VERSION}/" /usr/src/php/ext/imagick/php_imagick.h \
|
|
&& 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 exif \
|
|
&& docker-php-ext-configure gd --with-freetype=/usr/include/ \
|
|
--with-jpeg=/usr/include/ \
|
|
--with-webp \
|
|
--with-xpm \
|
|
--with-avif \
|
|
&& docker-php-ext-install -j 4 exif gd gettext intl ldap opcache pcntl pdo pdo_mysql pspell soap sockets zip bcmath gmp \
|
|
&& docker-php-ext-configure imap --with-imap --with-imap-ssl \
|
|
&& docker-php-ext-install -j 4 imap \
|
|
&& curl --silent --show-error https://getcomposer.org/installer | php -- --version=${COMPOSER_VERSION} \
|
|
&& mv composer.phar /usr/local/bin/composer \
|
|
&& chmod +x /usr/local/bin/composer \
|
|
&& docker-php-source delete \
|
|
&& apk del --purge autoconf \
|
|
aspell-dev \
|
|
cyrus-sasl-dev \
|
|
freetype-dev \
|
|
g++ \
|
|
gettext-dev \
|
|
icu-dev \
|
|
imagemagick-dev \
|
|
imap-dev \
|
|
libavif-dev \
|
|
libjpeg-turbo-dev \
|
|
libmemcached-dev \
|
|
libpng-dev \
|
|
libressl-dev \
|
|
libwebp-dev \
|
|
libxml2-dev \
|
|
libxpm-dev \
|
|
libzip-dev \
|
|
linux-headers \
|
|
make \
|
|
openldap-dev \
|
|
pcre-dev \
|
|
zlib-dev
|
|
|
|
COPY ./docker-entrypoint.sh /
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
CMD ["php-fpm"]
|