// dockerfile
FROM httpd:2.4
RUN apt update -y
COPY .docker/conf/apache.conf /usr/local/apache2/conf/demoapache.conf
RUN echo "\nInclude /usr/local/apache2/conf/demoapache.conf" >> /usr/local/apache2/conf/httpd.conf
RUN cat /usr/local/apache2/conf/httpd.conf
Then update the port mapping in docker compose file with: 8080:80
What Fix the configuration file content and dockerfile content for the Apache container
How Update the text blocks inside the class with the following data:
Then update the port mapping in docker compose file with: 8080:80
Why It's broken
End Result Container will build successfully
Checklist