Skip to content

solo-rey/Dockerize-Python-Flask-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dockerize Simple Flask Application

This repository shows a sample Flask app and run it inside a Docker container.

Prerequisites

Python  >= 2.7
Docker CE as per the OS
pip install -r requirements.txt

Installation steps

  1. Install Prerequisites
  2. 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-app

An application will be accessible at http:127.0.0.1:5000.

About

Dockerizing Simple Hello World Flask App

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages