FROM debian:12.8-slim RUN DEBIAN_FRONTEND=noninteractive apt update -y RUN DEBIAN_FRONTEND=noninteractive apt upgrade -y RUN DEBIAN_FRONTEND=noninteractive apt install apache2 php net-tools -y RUN cat /etc/apache2/ports.conf RUN sed -i 's/Listen 80/Listen 8080/g' /etc/apache2/ports.conf RUN sed -i 's/:80/:8080/g' /etc/apache2/sites-enabled/000-default.conf RUN cat /etc/apache2/sites-enabled/000-default.conf RUN cat /etc/apache2/ports.conf RUN a2enmod rewrite RUN echo "" >> /etc/apache2/apache2.conf RUN echo " AllowOverride All" >> /etc/apache2/apache2.conf RUN echo "" >> /etc/apache2/apache2.conf RUN apache2ctl -S RUN service apache2 start RUN netstat -tulpn RUN chmod 777 -R /var/log/apache2 /var/run/apache2; ls -la /var/log/apache2 RUN rm -rf /var/www/html/index.html RUN chmod 777 /var/log/apache2/error.log; ls -la /var/log/apache2/error.log COPY mvc /var/www/html/ RUN ls -la /var/www/html/ CMD ["bash", "-c", "cat /etc/apache2/sites-enabled/000-default.conf; service apache2 start; tail -F /var/log/apache2/error.log"]