fix: use php-extension-installer for PHP 8.4 IMAP PECL compilation
This commit is contained in:
21
Dockerfile
21
Dockerfile
@@ -1,31 +1,22 @@
|
||||
FROM php:8.4-fpm-alpine
|
||||
|
||||
# Install extension installer
|
||||
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
|
||||
|
||||
# Install system dependencies
|
||||
RUN apk add --no-cache \
|
||||
git \
|
||||
curl \
|
||||
libpng-dev \
|
||||
oniguruma-dev \
|
||||
libxml2-dev \
|
||||
zip \
|
||||
unzip \
|
||||
nginx \
|
||||
supervisor \
|
||||
imap-dev \
|
||||
krb5-dev \
|
||||
linux-headers \
|
||||
nodejs \
|
||||
npm \
|
||||
bash \
|
||||
icu-dev \
|
||||
$PHPIZE_DEPS
|
||||
bash
|
||||
|
||||
# Configure and install PHP extensions
|
||||
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
|
||||
&& docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd intl imap \
|
||||
&& pecl install redis \
|
||||
&& docker-php-ext-enable redis \
|
||||
&& apk del $PHPIZE_DEPS
|
||||
# Install PHP extensions
|
||||
RUN install-php-extensions pdo_mysql mbstring exif pcntl bcmath gd intl imap redis
|
||||
|
||||
# Install Composer
|
||||
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
||||
|
||||
Reference in New Issue
Block a user