Skip to content

Success-Guy/Containerize_flask-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Containerization Python Flask

Flask is a common python framework for web api development. And it is not exemption to be deployed in conainerized package.

To build, run:

docker build -t flask .

flask being the image tag name.

Note:

--host=0.0.0.0 and --port=80 are included in the command inside Dockerfile because flask only make port 5000 available locally - inside the container. Thus, to access it on the host machine, host with internet ip wildcard (0.0.0.0) and port argument must be supplied to override Flask default values of localhost:5000.

To build, run:

docker run -d --rm --name app -p 80:80 flask 

Making port 80 accessible on the host machine.

About

Containerize Python Flask Framework project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published