FROM php:8.1-apache # Instalar dependencias necesarias RUN apt-get update && apt-get install -y \ libpq-dev \ && docker-php-ext-install pdo_pgsql # Copiar los archivos de configuración de Apache (opcional) COPY apache.conf /etc/apache2/sites-available/000-default.conf # Habilitar módulos necesarios y reiniciar Apache RUN a2enmod rewrite && service apache2 restart