For a sample static web page: Write a Dockerfile, build a Docker image, push it to the Docker Hub, and provide instructions on how to run the image.
- Ensure you have docker properly configured on your computer by cheking its version if not kindly refer to the Docker documentation
docker --version- pull the docker image from docker hub by running this command
docker pull githubarj/docker-task:1.0- verify you have correctly pulled it by cheking installed images through the command
docker images- Run the image to create a container, replace cont-name with name of container you woud prefer and port number with your preferred port number
docker run -d --name cont-name -p 5173:80 githubarj/docker-task:1.0- Open your browser and go
localhost:5173and you should see something similar to the screenshot below:
