Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 529 Bytes

README.md

File metadata and controls

13 lines (11 loc) · 529 Bytes

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!