Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame^] | 1 | FROM php:8.2-fpm-alpine3.17 |
| 2 | LABEL maintainer "The Infrastructure Company GmbH <info@servercow.de>" |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 3 | |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame^] | 4 | # renovate: datasource=github-tags depName=krakjoe/apcu versioning=semver-coerced extractVersion=^v(?<version>.*)$ |
| 5 | ARG APCU_PECL_VERSION=5.1.22 |
| 6 | # renovate: datasource=github-tags depName=Imagick/imagick versioning=semver-coerced extractVersion=^v(?<version>.*)$ |
| 7 | ARG IMAGICK_PECL_VERSION=3.7.0 |
| 8 | # renovate: datasource=github-tags depName=php/pecl-mail-mailparse versioning=semver-coerced extractVersion=^v(?<version>.*)$ |
| 9 | ARG MAILPARSE_PECL_VERSION=3.1.6 |
| 10 | # renovate: datasource=github-tags depName=php-memcached-dev/php-memcached versioning=semver-coerced extractVersion=^v(?<version>.*)$ |
| 11 | ARG MEMCACHED_PECL_VERSION=3.2.0 |
| 12 | # renovate: datasource=github-tags depName=phpredis/phpredis versioning=semver-coerced extractVersion=^v(?<version>.*)$ |
| 13 | ARG REDIS_PECL_VERSION=6.0.1 |
| 14 | # renovate: datasource=github-tags depName=composer/composer versioning=semver-coerced extractVersion=^v(?<version>.*)$ |
| 15 | ARG COMPOSER_VERSION=2.6.5 |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 16 | |
| 17 | RUN 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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 27 | gettext \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 28 | 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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 37 | libavif \ |
| 38 | libavif-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 39 | libjpeg-turbo \ |
| 40 | libjpeg-turbo-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 41 | libmemcached \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 42 | libmemcached-dev \ |
| 43 | libpng \ |
| 44 | libpng-dev \ |
| 45 | libressl \ |
| 46 | libressl-dev \ |
| 47 | librsvg \ |
| 48 | libtool \ |
| 49 | libwebp-dev \ |
| 50 | libxml2-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 51 | libxpm \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 52 | libxpm-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 53 | libzip \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 54 | libzip-dev \ |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame^] | 55 | linux-headers \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 56 | make \ |
| 57 | mysql-client \ |
| 58 | openldap-dev \ |
| 59 | pcre-dev \ |
| 60 | re2c \ |
| 61 | redis \ |
| 62 | samba-client \ |
| 63 | zlib-dev \ |
| 64 | tzdata \ |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame^] | 65 | && 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 Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 70 | && 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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 76 | --with-webp \ |
| 77 | --with-xpm \ |
| 78 | --with-avif \ |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame^] | 79 | && 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 Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 80 | && docker-php-ext-configure imap --with-imap --with-imap-ssl \ |
| 81 | && docker-php-ext-install -j 4 imap \ |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame^] | 82 | && curl --silent --show-error https://getcomposer.org/installer | php -- --version=${COMPOSER_VERSION} \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 83 | && 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 Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 90 | gettext-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 91 | icu-dev \ |
| 92 | imagemagick-dev \ |
| 93 | imap-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 94 | libavif-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 95 | libjpeg-turbo-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 96 | libmemcached-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 97 | libpng-dev \ |
| 98 | libressl-dev \ |
| 99 | libwebp-dev \ |
| 100 | libxml2-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 101 | libxpm-dev \ |
| 102 | libzip-dev \ |
Matthias Andreas Benkard | d1f5b68 | 2023-11-18 13:18:30 +0100 | [diff] [blame^] | 103 | linux-headers \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 104 | make \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 105 | openldap-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 106 | pcre-dev \ |
| 107 | zlib-dev |
| 108 | |
| 109 | COPY ./docker-entrypoint.sh / |
| 110 | |
| 111 | ENTRYPOINT ["/docker-entrypoint.sh"] |
| 112 | |
| 113 | CMD ["php-fpm"] |