blob: ea8c78a5b7b24e54f43c8c8231eb76667e5c4e19 [file] [log] [blame]
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01001FROM php:8.2-fpm-alpine3.17
2LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>"
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01003
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01004# renovate: datasource=github-tags depName=krakjoe/apcu versioning=semver-coerced extractVersion=^v(?<version>.*)$
5ARG APCU_PECL_VERSION=5.1.22
6# renovate: datasource=github-tags depName=Imagick/imagick versioning=semver-coerced extractVersion=^v(?<version>.*)$
7ARG IMAGICK_PECL_VERSION=3.7.0
8# renovate: datasource=github-tags depName=php/pecl-mail-mailparse versioning=semver-coerced extractVersion=^v(?<version>.*)$
9ARG MAILPARSE_PECL_VERSION=3.1.6
10# renovate: datasource=github-tags depName=php-memcached-dev/php-memcached versioning=semver-coerced extractVersion=^v(?<version>.*)$
11ARG MEMCACHED_PECL_VERSION=3.2.0
12# renovate: datasource=github-tags depName=phpredis/phpredis versioning=semver-coerced extractVersion=^v(?<version>.*)$
13ARG REDIS_PECL_VERSION=6.0.1
14# renovate: datasource=github-tags depName=composer/composer versioning=semver-coerced extractVersion=^v(?<version>.*)$
15ARG COMPOSER_VERSION=2.6.5
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010016
17RUN apk add -U --no-cache autoconf \
18 aspell-dev \
19 aspell-libs \
20 bash \
21 c-client \
22 cyrus-sasl-dev \
23 freetype \
24 freetype-dev \
25 g++ \
26 git \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010027 gettext \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010028 gettext-dev \
29 gmp-dev \
30 gnupg \
31 icu-dev \
32 icu-libs \
33 imagemagick \
34 imagemagick-dev \
35 imap-dev \
36 jq \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010037 libavif \
38 libavif-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010039 libjpeg-turbo \
40 libjpeg-turbo-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010041 libmemcached \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010042 libmemcached-dev \
43 libpng \
44 libpng-dev \
45 libressl \
46 libressl-dev \
47 librsvg \
48 libtool \
49 libwebp-dev \
50 libxml2-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010051 libxpm \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010052 libxpm-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010053 libzip \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010054 libzip-dev \
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010055 linux-headers \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010056 make \
57 mysql-client \
58 openldap-dev \
59 pcre-dev \
60 re2c \
61 redis \
62 samba-client \
63 zlib-dev \
64 tzdata \
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010065 && pecl install APCu-${APCU_PECL_VERSION} \
66 && pecl install imagick-${IMAGICK_PECL_VERSION} \
67 && pecl install mailparse-${MAILPARSE_PECL_VERSION} \
68 && pecl install memcached-${MEMCACHED_PECL_VERSION} \
69 && pecl install redis-${REDIS_PECL_VERSION} \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010070 && docker-php-ext-enable apcu imagick memcached mailparse redis \
71 && pecl clear-cache \
72 && docker-php-ext-configure intl \
73 && docker-php-ext-configure exif \
74 && docker-php-ext-configure gd --with-freetype=/usr/include/ \
75 --with-jpeg=/usr/include/ \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010076 --with-webp \
77 --with-xpm \
78 --with-avif \
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010079 && docker-php-ext-install -j 4 exif gd gettext intl ldap opcache pcntl pdo pdo_mysql pspell soap sockets sysvsem zip bcmath gmp \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010080 && docker-php-ext-configure imap --with-imap --with-imap-ssl \
81 && docker-php-ext-install -j 4 imap \
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +010082 && curl --silent --show-error https://getcomposer.org/installer | php -- --version=${COMPOSER_VERSION} \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010083 && mv composer.phar /usr/local/bin/composer \
84 && chmod +x /usr/local/bin/composer \
85 && apk del --purge autoconf \
86 aspell-dev \
87 cyrus-sasl-dev \
88 freetype-dev \
89 g++ \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010090 gettext-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010091 icu-dev \
92 imagemagick-dev \
93 imap-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010094 libavif-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010095 libjpeg-turbo-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010096 libmemcached-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010097 libpng-dev \
98 libressl-dev \
99 libwebp-dev \
100 libxml2-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100101 libxpm-dev \
102 libzip-dev \
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +0100103 linux-headers \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +0100104 make \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100105 openldap-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +0100106 pcre-dev \
107 zlib-dev
108
109COPY ./docker-entrypoint.sh /
110
111ENTRYPOINT ["/docker-entrypoint.sh"]
112
113CMD ["php-fpm"]