Chat GPT just saved me HOURS maybe days...
I was using CMD source /path/to/file/*.sh to source some scripts, and was getting an error.
found out that even though /bin/bash has access to the "source" command, /bin/sh does not, docker uses bin/sh not /bin/bash.
so replace "source" with "." and it works fine.
computers, pffff