Docker Project with Dockerfile
Creating simple a web applicating with Docker, Dockerfile and post image on Docker Hub
Tasks
Create a Dockerfile for a simple web application (e.g. a Node.js or Python app)
Build the image using the Dockerfile and run the container
Verify that the application is working as expected by accessing it in a web browser
Push the image to a public or private repository (e.g. Docker Hub )
Solution
Create a Dockerfile for a simple web application (e.g. a Node.js or Python app)
I do have a project for Python on GitHub. I have cloned it to my local system. The GitHub repo can be found here.
From this project, I have written a Dockerfile:
Build the image using the Dockerfile and run the container.
-
Verify that the application is working as expected by accessing it in a web browser
Push the image to a public or private repository (e.g. Docker Hub)
First log in to the docker hub
-
tag with your username
-
Push the image to the docker hub
-
Check on the docker hub
The task Day 17 of #90DaysOfDevops has been completed. So far in this project we have created a Dockerfile, build docker image from the Dockerfile and posted on the docker hub.
If you like the blog, do like, have any queries? do comment and share the blog ๐
You can also subscribe to newsletter for updates on my blogs, below ๐.