Code for the blog 'Understanding Multi-Stage Builds'. It can be found here at https://cloudnativeislamabad.hashnode.dev/understanding-docker-multi-stage-build To run the container run the following commands.
0a. Considering the Flask Application is not built run this command to check if the program runs.
0b. python -m flask --app .\app.py run.
If Flask Application works then use these commands.
- docker build -t docker-flask .
- docker run -p 5000:5000 -d docker-flask
- Then go to your preferred browser and write localhost:5000
- Congratulations! You containerized your Flask code