Skip to content

namcxn/python-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

QuickStart

  • A directory structure like:
.
├── app
│   └── main.py
└── Dockerfile
  • Go to the project directory (in where your Dockerfile is, containing your app directory)
  • Build your Flask image:
docker build -t test:testing .
  • Run a container based on your image:
docker run -d --name test-cont -p 80:80 test:testing
  • Now, when you go to your Docker container URL, for example: http://localhost, you will see your
curl http://localhost
{"Accept":"*/*","Client IP":"172.17.0.1","Host":"localhost","User-Agent":"curl/7.61.1"}

Docker image

docker pull namcx/python-flask

About

Example python with flask

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published