Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 620 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 620 Bytes

#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