How to run a python script in a docker container in vscode when you click on the “Run” arrow button
I’ve been trying to configure vscode so that when I click on that arrow shaped “run” button on the top right, vscode will then build a docker container if the image doesn’t exist, and then run a python script in the docker container. I’ve been playing with the launch.json
and tasks.json
files however I was unsuccessful.
This is what I have:
launch.json: