Uploading web source files to apache docker container

Hi,

You should either use the COPY instruction in your Dockerfile to copy the files into the htdocs location in your container while building your Apache image Or another best way to do is to use Docker Volume to map the content of htdocs from your host machine to the htdocs directory of the container.

You can refer the docs of httpd official Dockerfile here https://hub.docker.com/_/httpd/

Regards

1 Like