Setup Flask app with docker and nginx
Just the steps
git clone git@gitlab.com:saurshaz/my-py-app.git
snap install docker
snap start docker
docker-compose up --build
- make changes to
app
folder for code and they'll be reflected immediately
access docker shell directly
(good to know, might be needed)
docker exec -i -t 6e24d2de3709 /bin/sh
- replace 6e24d2de3709 with your docker container id/name. you can find that by running
docker ps