In this repository, I started to learn how to deploy Flask apps using Docker containers (which I need for "Pulse" (open education tracking & performance app) and "Research Cloud" (research cloud for co-authors on EC2).
- displaying "Hello world"
- using environment variables (e.g., for non-sensitive information)
- reading in secret credentials from a
.txt
file
export FLASK_APP=app
flask run
-
Install prerequisites (Docker, AWS, Lightsail) from here
-
Build docker image:
docker-compose build
-
Run docker image:
docker-compose up
tbd
-
View running docker images:
docker ps
-
Remove docker images:
docker rm <IMAGE_NAME-SEE-DOCKER-PS
> -
Start/stop docker images:
docker start <IMAGE>
,docker stop <IMAGE>
This repository has been inspired by, among others: