This repository shows a sample Flask app and run it inside a Docker container.
Python >= 2.7
Docker CE as per the OS
pip install -r requirements.txt
- Install Prerequisites
- Run the following commands
Build the image using following command:
$ docker build -t my-flask-app:latest .Run a Docker container using following command:
$ docker run -d -p 5000:5000 my-flask-appAn application will be accessible at http:127.0.0.1:5000.