blob: 93acb33f281533a481e7490b46742a8998e3bf62 [file] [log] [blame]
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01001FROM php:8.1-fpm-alpine3.17
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01002LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
3
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +01004ENV APCU_PECL 5.1.22
5ENV IMAGICK_PECL 3.7.0
6ENV MAILPARSE_PECL 3.1.4
7ENV MEMCACHED_PECL 3.2.0
8ENV REDIS_PECL 5.3.7
9ENV COMPOSER 2.4.4
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010010
11RUN 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 Benkard1ba53812022-12-27 17:32:58 +010021 gettext \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010022 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 Benkard1ba53812022-12-27 17:32:58 +010031 libavif \
32 libavif-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010033 libjpeg-turbo \
34 libjpeg-turbo-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010035 libmemcached \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010036 libmemcached-dev \
37 libpng \
38 libpng-dev \
39 libressl \
40 libressl-dev \
41 librsvg \
42 libtool \
43 libwebp-dev \
44 libxml2-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010045 libxpm \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010046 libxpm-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010047 libzip \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010048 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 Benkard1ba53812022-12-27 17:32:58 +010058 && 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 Benkardb382b102021-01-02 15:32:21 +010063 && 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 Benkard1ba53812022-12-27 17:32:58 +010069 --with-webp \
70 --with-xpm \
71 --with-avif \
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020072 && docker-php-ext-install -j 4 exif gd gettext intl ldap opcache pcntl pdo pdo_mysql pspell soap sockets zip bcmath gmp \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010073 && docker-php-ext-configure imap --with-imap --with-imap-ssl \
74 && docker-php-ext-install -j 4 imap \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010075 && curl --silent --show-error https://getcomposer.org/installer | php -- --version=${COMPOSER} \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010076 && 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 Benkard1ba53812022-12-27 17:32:58 +010083 gettext-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010084 icu-dev \
85 imagemagick-dev \
86 imap-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010087 libavif-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010088 libjpeg-turbo-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010089 libmemcached-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010090 libpng-dev \
91 libressl-dev \
92 libwebp-dev \
93 libxml2-dev \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010094 libxpm-dev \
95 libzip-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010096 make \
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010097 openldap-dev \
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +010098 pcre-dev \
99 zlib-dev
100
101COPY ./docker-entrypoint.sh /
102
103ENTRYPOINT ["/docker-entrypoint.sh"]
104
105CMD ["php-fpm"]