Arth Task

Task Description: Docker Task
šŸ”…Configuring HTTPD Server on Docker Container
šŸ”…Setting up Python Interpreter and running
Python Code on Docker Container

This task can be very easily completed.

Either we can launch a container and configure all these things inside that or we can use Dockerfile to create a image that will have all this setup inside it.

We will use Dockerfile to create a image that will have all this setup inside it , as it is a good approach.

Dockerfile for this setup is:

Also the python code that we will put inside this Image is:

Now , lets create Image from this Dockerfile.

Now let's launch container from this Docker Image.

Now, if we go to ip_of_this_container/cgi-bin/python.py , then this code will run and we will get output of that python code.

Hence, task solved