Back to Browse

Debugging flask application within a docker container using VSCode - Ashok Tankala

4.2K views
Dec 1, 2021
23:02

We all love Docker which helps us a lot in deploying our applications without worrying about what OS we are using and what software versions we have. As a developer you come across a bug every now and then. To solve a bug debug comes very handy. In this talk, I would love to show you one of the ways to debug your flask application within a docker container using VSCode. To do that first, we will build a small flask application and write a Dockerfile for that and run the application. When we want to debug that application we need debugpy package which I don't want to put it in my final docker image so instead of building a different Dockerfile for each purpose we will get to know a bit about Docker multistage build concept and update the current Dockerfile and debug our flask application. Ashok Tankala is the CTO at KC Overseas Education. slides: https://docs.google.com/presentation/d/1fF_RrQTqn4djdILYtC9Bl9kZ5JVCBXzXp71dzvVjqxc/edit?usp=sharing

Download

1 formats

Video Formats

360pmp437.4 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Debugging flask application within a docker container using VSCode - Ashok Tankala | NatokHD