Question: How would I go about building a Dockerfile that performs the following function. Write the Dockerfile so that it includes the default Python http server
How would I go about building a Dockerfile that performs the following function.
Write the Dockerfile so that it includes the default Python http server command to run for the web server, using port 8001. Once you have assembled the necessary steps in your Dockerfile, execute the command to build it. Now that your image is built, create and run a container based on it. You may do this in several steps, or use the appropriate docker command to accomplish the task in a single step. Ensure that you connect port 8001 of the docker container to port 8001 on the host. Also ensure that you map the www subfolder you created to the directory in the container that you are serving your static file from.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
