I have a Docker file which list environmental variable as follows:
ENV WORKGROUP "my-workgroup"
In python file I am accessing it as follows:
os.environ['WORKGROUP']
When I build the docker it fails with the following error:
KeyError: 'WORK_GROUP'
The reason is some environmental variables have some default values which I need to set in docker. I can override these inside docker run command when needed. Any idea how can I achieve such a scenario. Thanks.