Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 1 | FROM php:8.0-fpm-alpine3.14 |
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 | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 4 | ENV APCU_PECL 5.1.20 |
| 5 | ENV IMAGICK_PECL 3.5.1 |
Matthias Andreas Benkard | b382b10 | 2021-01-02 15:32:21 +0100 | [diff] [blame] | 6 | # Mailparse is pulled from master branch |
| 7 | #ENV MAILPARSE_PECL 3.0.2 |
| 8 | ENV MEMCACHED_PECL 3.1.5 |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 9 | ENV REDIS_PECL 5.3.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 \ |
| 21 | gettext-dev \ |
| 22 | gmp-dev \ |
| 23 | gnupg \ |
| 24 | icu-dev \ |
| 25 | icu-libs \ |
| 26 | imagemagick \ |
| 27 | imagemagick-dev \ |
| 28 | imap-dev \ |
| 29 | jq \ |
| 30 | libjpeg-turbo \ |
| 31 | libjpeg-turbo-dev \ |
| 32 | libmemcached-dev \ |
| 33 | libpng \ |
| 34 | libpng-dev \ |
| 35 | libressl \ |
| 36 | libressl-dev \ |
| 37 | librsvg \ |
| 38 | libtool \ |
| 39 | libwebp-dev \ |
| 40 | libxml2-dev \ |
| 41 | libxpm-dev \ |
| 42 | libzip-dev \ |
| 43 | make \ |
| 44 | mysql-client \ |
| 45 | openldap-dev \ |
| 46 | pcre-dev \ |
| 47 | re2c \ |
| 48 | redis \ |
| 49 | samba-client \ |
| 50 | zlib-dev \ |
| 51 | tzdata \ |
| 52 | && git clone https://github.com/php/pecl-mail-mailparse \ |
| 53 | && cd pecl-mail-mailparse \ |
| 54 | && pecl install package.xml \ |
| 55 | && cd .. \ |
| 56 | && rm -r pecl-mail-mailparse \ |
| 57 | && pecl install redis-${REDIS_PECL} memcached-${MEMCACHED_PECL} APCu-${APCU_PECL} imagick-${IMAGICK_PECL} \ |
| 58 | && docker-php-ext-enable apcu imagick memcached mailparse redis \ |
| 59 | && pecl clear-cache \ |
| 60 | && docker-php-ext-configure intl \ |
| 61 | && docker-php-ext-configure exif \ |
| 62 | && docker-php-ext-configure gd --with-freetype=/usr/include/ \ |
| 63 | --with-jpeg=/usr/include/ \ |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 64 | && 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] | 65 | && docker-php-ext-configure imap --with-imap --with-imap-ssl \ |
| 66 | && docker-php-ext-install -j 4 imap \ |
| 67 | && curl --silent --show-error https://getcomposer.org/installer | php \ |
| 68 | && mv composer.phar /usr/local/bin/composer \ |
| 69 | && chmod +x /usr/local/bin/composer \ |
| 70 | && apk del --purge autoconf \ |
| 71 | aspell-dev \ |
| 72 | cyrus-sasl-dev \ |
| 73 | freetype-dev \ |
| 74 | g++ \ |
| 75 | icu-dev \ |
| 76 | imagemagick-dev \ |
| 77 | imap-dev \ |
| 78 | libjpeg-turbo-dev \ |
| 79 | libpng-dev \ |
| 80 | libressl-dev \ |
| 81 | libwebp-dev \ |
| 82 | libxml2-dev \ |
| 83 | make \ |
| 84 | pcre-dev \ |
| 85 | zlib-dev |
| 86 | |
| 87 | COPY ./docker-entrypoint.sh / |
| 88 | |
| 89 | ENTRYPOINT ["/docker-entrypoint.sh"] |
| 90 | |
| 91 | CMD ["php-fpm"] |