Hard Prerequisites |
IMPORTANT: Please review these prerequisites, they include important information that will help you with this content. |
|
Before you do this, please revise TOPIC: Intro to Docker and Docker-compose . You are going to need to have solid understanding of all the Advanced Topics. If you are having issues with setting up Docker Desktop on Windows, please visit this follow this topic TOPIC: Troubleshooting Docker Desktop for Windows .
Make sure you understand:
Make a docker image that can be used to run your flask app. Please create the following files:
Dockerfile
this should do normal dockerfile things :)build.sh
This should be a shell script that you can use to quickly build your image and give it the right name. Here is an example build script from the Tilde code base:#!/bin/sh
docker build -t umuzi-org/tilde-backend .
push.sh
executing this script should push your image to dockerhubCreate a docker-compose.yaml
file. This should be used to launch your app and database.