- Clone the repository
git clone https://github.com/sri321/githubtask.git
cd githubtask
- Build the Image
docker build --tag=app .
- Run the app
docker run -p 5000:80 app
-
Go to "http://localhost:5000". You can see the required output
-
If you go to your command prompt and type the following to check the same
curl "http://localhost:5000"
- If the above command does not work please check your proxy server settings. If there is still an error replace 'localhost' with the docker machine IP address like below Get docker machine IP
docker-machine ip
Check the webserver again
curl "http://IPAddress:5000"
Time Spent on the Task: 60 minutes Language Used: Python