FROM php:8.4-fpm-bookworm RUN apt-get update && apt-get install -y \ git \ curl \ unzip \ libpng-dev \ libjpeg62-turbo-dev \ libfreetype6-dev \ libzip-dev \ libicu-dev \ libonig-dev \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-install -j"$(nproc)" \ bcmath \ exif \ gd \ intl \ opcache \ pcntl \ pdo_mysql \ zip \ && pecl install redis \ && docker-php-ext-enable redis \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* COPY --from=composer:2 /usr/bin/composer /usr/bin/composer WORKDIR /var/www/html