FROM php:8.2-apache # Install required PHP extensions for WordPress RUN apt-get update && apt-get install -y \ libpng-dev \ libjpeg-dev \ libfreetype6-dev \ libzip-dev \ libicu-dev \ && docker-php-ext-configure gd --with-freetype --with-jpeg \ && docker-php-ext-install -j$(nproc) \ gd \ mysqli \ pdo_mysql \ zip \ intl \ opcache \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* # Enable Apache modules RUN a2enmod rewrite headers expires # Copy custom Apache configuration COPY conf/httpd.conf /etc/apache2/sites-available/000-default.conf # Set working directory WORKDIR /var/www EXPOSE 80