Getting error could not locate file if fileName is written in camelcase in params of CMD in dockerfile

I am providing filename as envParams.json in params of CMD in dockefile but when I run it I get below error

ERROR: Could not locate file envparams.json, Provide the environment parameters file on command line in the form .json

If I rename the file to envparams.json it is working.

How do I resolve this issue?

I have used ADD in docker file to ADD envParams.json and it is getting added to container also.
Even I tried using cat envParams.json and cat > envParams.json which is also working.
But while running it is searching for envparams.json

Suggestion: why don’t you try to run envParams.json instead of the lowercase version? Linux is case sensitive.

1 Like