This is a simple web server based on Flask
Install python3 on local host or virual env
pip install -r requirements.txt
python3 app.py
http://0.0.0.0:4080
docker build -t flaskapp:latest .
docker image ls
docker container run -p 8000:4080 --name myflaskapp --rm flaskapp:latest
docker container run -dit -p 8000:4080 --name myflaskapp --rm flaskapp:latest
docker container exec -it myflaskapp bash
docker container exec -it myflaskapp python3
Attach to the container but you can not do much here. Press Ctl+p Ctl+q to come out without stopping the container
docker attach myflaskapp
docker logs myflaskapp
curl http://localhost:8000