Skip to content

hervekhg/dockerisationFlaskApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Using Docker to Build Flask Application with MySql Database 8-)

Dockerfile

The Dockerfile build a custom image with all module which are needed for the project. The image a based on latest version of Ubuntu:18.04

docker build -t hervekhg/237story:latest .
docker images

Docker-compose

The docker-compose build a container with our custom image and connect it to mysql database

docker-compose build #Build
docker-compose up # Launch
docker-compose ps # Check

#Import database
docker exec -it mysql_container_id mysql -uusername -ppassword --database=237story < 237storyDB.20181013_2200.sql

About

Flask application in docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published