Hi everyone! 👋
Welcome to this dockerization of django repo. 💥
This is the way to dockerize a django app. 🤩
This repo includes the Dokcerfile which is used to create a docker image of this app. 😎
docker build -t django-app:1.0 .
This creates a docker image with the tag of django-app and vesrion is assigned as 1.0
docker run --name=my-django-app -p=8000:8000 django-app:1.0
This command will
- run a container named my-django-app ✔️
- use django-app image we have just created ✔️
- opens the port 8000 in your local machine ✔️
Go to http://localhost:8000 to test if everything is OK.