FROM php:8.3-fpm-alpine RUN apk --update add \ linux-headers \ autoconf \ shadow \ gcc \ libc-dev \ make \ postgresql-dev \ git \ libzip-dev \ jq \ && docker-php-ext-configure pgsql -with-pgsql=/usr/include/postgresql/ \ && docker-php-ext-configure intl \ && docker-php-ext-configure pcntl --enable-pcntl \ && docker-php-ext-install pgsql pdo_pgsql bcmath intl sockets zip pcntl posix \ && rm -rf /var/cache/apk/* && rm -rf /etc/apk/cache RUN pecl install xdebug && docker-php-ext-enable xdebug RUN curl -L https://getcomposer.org/download/2.7.2/composer.phar -o /usr/bin/composer && chmod a+x /usr/bin/composer COPY .docker/app/php.ini /usr/local/etc/php/conf.d/dev.ini