- Prerequisites
sudo python3 -m pip install Flask
or
sudo python3 -m pip install -r requirements.txt
- Run the application
python3 app.py
- Build the image
docker build -t python-docker .
- Run the container
docker run -d --name --restart unless-stopped python-app -p 8080:8080 python-docker
- Access the application
http://localhost:8080/quote
- Push Docker Image