FROM php:8.1.22-apache COPY 000-default.conf /etc/apache2/sites-enabled/ RUN a2enmod rewrite RUN service apache2 restart RUN apt-get update && apt-get install -y libpq-dev git && docker-php-ext-install pdo pdo_pgsql RUN apt-get install -y libzip-dev && docker-php-ext-install zip #install ldap RUN apt-get install libldap2-dev -y && \ rm -rf /var/lib/apt/lists/* && \ docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \ docker-php-ext-install ldap #install xdebug RUN pecl install xdebug && docker-php-ext-enable xdebug COPY xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini #install composer RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer