I have created a very basic dockerfile,
ADD dns.py /
CMD [“python”, “dns.py”]
After building the image and trying to run it, my application throws an error that there is no dnslib module.
I don’t see the image trying to install/build the pypi/dnslib.
Without my CMD , the first thing I see is it collecting/installing dnslib via pip. I drop into shell, I am able to start my application.
Can anyone explain what is happening??