Skip to content

SyedMuneeb29/my-simple-flask-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A basic Flask App

Run with virtualenv

  • Create a virtualenv folder virtualenv -p python3 venv
  • Activate source venv/bin/activate
  • Install the requirements pip install -r requirements.txt
  • Run gunicorn gunicorn app:app --bind 0.0.0.0:5000 --reload

Run with Docker

  • Build the image with docker build -t hello-app .
  • Run the container with docker run -d -p 5000:5000 -e PORT=5000 --name hello-server hello-app
  • Check that the container is running
  • Go to localhost:5000. You should see Hello, World!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 80.4%
  • Python 19.6%