docker build -t flask-python-sample:latest .
Or with docker-compose
docker-compose build
docker run -d -p 5000:5000 flask-python-sample
Or with docker-compose
docker-compose up -d
docker exec -ti flask-python-sample /bin/bash
If you use docker-compose, you can do live changes
Go to http://localhost:5000
and you should see flask running :-)