Skip to content

abror2142/dockerize-django-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Dockerizer Django App

Hi everyone! 👋

Welcome to this dockerization of django repo. 💥

Motivation

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. 😎

To Build a django app image, Run:

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

To Run and Test if it works, Run:

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published