Skip to content

Example Dockerfile for a Python Flask app to randomly suggest a type of content to review

Notifications You must be signed in to change notification settings

lrakai/flask-content-advisor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-content-advisor

Flask app to randomly suggest a type of content to review next

Run in Container

docker run --name advisor -p 80:5000 flask-content-advisor

Run Out of Container

Ensure Flask is installed and check the instructions for your operating system

Mac/Linux

export FLASK_APP=src/app.py
flask run

Windows

set FLASK_APP=src/app.py
flask run

Infrastructure

An Azure Resource Manager template is included to provision a Linux virtual machine if you prefer to use a machine in the cloud for working with Docker. Enter the following commands bootstrap the machine:

sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum makecache fast
sudo yum -y install docker-ce
sudo systemctl start docker

About

Example Dockerfile for a Python Flask app to randomly suggest a type of content to review

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages