| FROM php:8.1-fpm-alpine3.17 |
| LABEL maintainer "Andre Peters <andre.peters@servercow.de>" |
| RUN apk add -U --no-cache autoconf \ |
| && pecl install mailparse-${MAILPARSE_PECL} \ |
| && pecl install redis-${REDIS_PECL} \ |
| && pecl install memcached-${MEMCACHED_PECL} \ |
| && pecl install APCu-${APCU_PECL} \ |
| && pecl install imagick-${IMAGICK_PECL} \ |
| && docker-php-ext-enable apcu imagick memcached mailparse redis \ |
| && docker-php-ext-configure intl \ |
| && docker-php-ext-configure exif \ |
| && docker-php-ext-configure gd --with-freetype=/usr/include/ \ |
| --with-jpeg=/usr/include/ \ |
| && docker-php-ext-install -j 4 exif gd gettext intl ldap opcache pcntl pdo pdo_mysql pspell soap sockets zip bcmath gmp \ |
| && docker-php-ext-configure imap --with-imap --with-imap-ssl \ |
| && docker-php-ext-install -j 4 imap \ |
| && curl --silent --show-error https://getcomposer.org/installer | php -- --version=${COMPOSER} \ |
| && mv composer.phar /usr/local/bin/composer \ |
| && chmod +x /usr/local/bin/composer \ |
| && apk del --purge autoconf \ |
| COPY ./docker-entrypoint.sh / |
| ENTRYPOINT ["/docker-entrypoint.sh"] |