Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 1 | FROM php:8.1-fpm-alpine3.17 |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 2 | LABEL maintainer "Andre Peters <andre.peters@servercow.de>" |
| 3 | |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 4 | ENV APCU_PECL 5.1.22 |
| 5 | ENV IMAGICK_PECL 3.7.0 |
| 6 | ENV MAILPARSE_PECL 3.1.4 |
| 7 | ENV MEMCACHED_PECL 3.2.0 |
| 8 | ENV REDIS_PECL 5.3.7 |
| 9 | ENV COMPOSER 2.4.4 |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 10 | |
| 11 | RUN apk add -U --no-cache autoconf \ |
| 12 | aspell-dev \ |
| 13 | aspell-libs \ |
| 14 | bash \ |
| 15 | c-client \ |
| 16 | cyrus-sasl-dev \ |
| 17 | freetype \ |
| 18 | freetype-dev \ |
| 19 | g++ \ |
| 20 | git \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 21 | gettext \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 22 | gettext-dev \ |
| 23 | gmp-dev \ |
| 24 | gnupg \ |
| 25 | icu-dev \ |
| 26 | icu-libs \ |
| 27 | imagemagick \ |
| 28 | imagemagick-dev \ |
| 29 | imap-dev \ |
| 30 | jq \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 31 | libavif \ |
| 32 | libavif-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 33 | libjpeg-turbo \ |
| 34 | libjpeg-turbo-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 35 | libmemcached \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 36 | libmemcached-dev \ |
| 37 | libpng \ |
| 38 | libpng-dev \ |
| 39 | libressl \ |
| 40 | libressl-dev \ |
| 41 | librsvg \ |
| 42 | libtool \ |
| 43 | libwebp-dev \ |
| 44 | libxml2-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 45 | libxpm \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 46 | libxpm-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 47 | libzip \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 48 | libzip-dev \ |
| 49 | make \ |
| 50 | mysql-client \ |
| 51 | openldap-dev \ |
| 52 | pcre-dev \ |
| 53 | re2c \ |
| 54 | redis \ |
| 55 | samba-client \ |
| 56 | zlib-dev \ |
| 57 | tzdata \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 58 | && pecl install mailparse-${MAILPARSE_PECL} \ |
| 59 | && pecl install redis-${REDIS_PECL} \ |
| 60 | && pecl install memcached-${MEMCACHED_PECL} \ |
| 61 | && pecl install APCu-${APCU_PECL} \ |
| 62 | && pecl install imagick-${IMAGICK_PECL} \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 63 | && docker-php-ext-enable apcu imagick memcached mailparse redis \ |
| 64 | && pecl clear-cache \ |
| 65 | && docker-php-ext-configure intl \ |
| 66 | && docker-php-ext-configure exif \ |
| 67 | && docker-php-ext-configure gd --with-freetype=/usr/include/ \ |
| 68 | --with-jpeg=/usr/include/ \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 69 | --with-webp \ |
| 70 | --with-xpm \ |
| 71 | --with-avif \ |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 72 | && docker-php-ext-install -j 4 exif gd gettext intl ldap opcache pcntl pdo pdo_mysql pspell soap sockets zip bcmath gmp \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 73 | && docker-php-ext-configure imap --with-imap --with-imap-ssl \ |
| 74 | && docker-php-ext-install -j 4 imap \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 75 | && curl --silent --show-error https://getcomposer.org/installer | php -- --version=${COMPOSER} \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 76 | && mv composer.phar /usr/local/bin/composer \ |
| 77 | && chmod +x /usr/local/bin/composer \ |
| 78 | && apk del --purge autoconf \ |
| 79 | aspell-dev \ |
| 80 | cyrus-sasl-dev \ |
| 81 | freetype-dev \ |
| 82 | g++ \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 83 | gettext-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 84 | icu-dev \ |
| 85 | imagemagick-dev \ |
| 86 | imap-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 87 | libavif-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 88 | libjpeg-turbo-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 89 | libmemcached-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 90 | libpng-dev \ |
| 91 | libressl-dev \ |
| 92 | libwebp-dev \ |
| 93 | libxml2-dev \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 94 | libxpm-dev \ |
| 95 | libzip-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 96 | make \ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame] | 97 | openldap-dev \ |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 98 | pcre-dev \ |
| 99 | zlib-dev |
| 100 | |
| 101 | COPY ./docker-entrypoint.sh / |
| 102 | |
| 103 | ENTRYPOINT ["/docker-entrypoint.sh"] |
| 104 | |
| 105 | CMD ["php-fpm"] |