FROM php:8.3-apache RUN a2enmod rewrite RUN sed -i 's/Listen 80/Listen 8080/' /etc/apache2/ports.conf && \ sed -i 's/:80>/:8080>/' /etc/apache2/sites-available/000-default.conf RUN echo '\n\ AllowOverride All\n\ ' >> /etc/apache2/sites-available/000-default.conf RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer WORKDIR /var/www/html COPY . /var/www/html RUN chmod -R 777 /var/www/html COPY .htaccess /var/www/html/.htaccess EXPOSE 8080 CMD ["apache2-foreground"]