Most of us have been setting up our web servers on a bare-metal system or Virtual machine. But we can also set up a webserver on a custom docker image as well. SO, let's see how we can do it.

  1. Create a new directory and create a DockerFile in it.

2. Give commands in the DockerFile required for the Image creation.

--

--