Docker-Assignment-5
In this assignment, we have installed Apache2 on the EC2 instance using the Dockerfile
For a complete solution, check this link: https://medium.com/devops-guides/replace-the-apache-default-web-page-with-sample-html-file-inside-container-docker-assignment-5-9a835b8fb20c
Step 1: Create the EC2 Instance & Install Docker on this instance.
Step 2: Create an index.html file.
Step 3: Add index.html file in the Dockerfile using the ADD command.
Step 4: Create an image using the Dockerfile.
Step 5: Create a container & map this container on port 89. The container will be successfully created if the Dockerfile is correct.
Step 6: Open the Public IP Address with Port no 89, your index.html file content will be shown on the web page in the browser.