What does it mean when a KeyError is thrown for a python-dotenv variable in the docker container when the python project runs fine locally?
I am receiving a KeyError when running my docker container stating that a .env variable is presumably missing. When I run the project locally, everything works fine. Therefore, I assume loading the python-dotenv’s .env file is not working correctly. After running the run command (part of build.sh file), the keyerror is thrown and container exits. I have the following project structure: