FROM php:8.3-apache # Copy the application files to the Apache web root COPY . /var/www/html/ # Ensure proper permissions RUN chown -R www-data:www-data /var/www/html # Change Apache to listen on port 8080 instead of 80 RUN sed -i 's/80/8080/g' /etc/apache2/sites-available/000-default.conf /etc/apache2/ports.conf EXPOSE 8080 CMD ["apache2-foreground"]