Let's say I am trying to make a docker image for my python project. I build the container and then deploy it locally to find out I have forgotten to include `numpy` module (oh, crap!). And then I rebuild the container, repeat, and now I find out I've not included `tqdm` (OH CRAP!). This is the hard way of learning which packages to include in your Docker image, be it a small python project with few dependencies or a React frontend project with tons of micromodules you have found from the darkest corners of the internet.
What I want to know is if there is a standard way of finding out everything that is required for your project, so you can include all of them in the image in the first go and be sure about it?