devops-project/projects/dockerize-python-application at main · tungbq/devops-project

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Latest commit

History

History

dockerize-python-application

Folders and files

NameName

Last commit message

Last commit date

parent directory

..

Project: Dockerize python flask application

This project helps us understand and know how to dockerize an application (python flask in this case)

Overview

Introduction

  • Tech stack: python, docker, flask
  • To get basic concept of these tools, you could visit: devops-basic repository

Prerequisite

  • You have docker installed on your machine
  • Basic knowledge about docker

1-Install docker

2-Build the docker image

  • Run docker build -t my-flask-app .

3-Run the Docker container based on the image

  • Run docker run -p 5000:5000 my-flask-app

4-Verify the result

5-Bonus

All in one script could be found at demo_project.sh

Related link