Error response from daemon: create /home/production_sign: " /home/production_sign" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed. If you intended to pass a host directory, use absolute path
Fix:
Remove space between -v and the folders to mount
Is it running on a CI pipeline? $(PROJECT) is not a valid shell syntax if you are using it for variables. I don’t see how it is a Docker issue. It looks like the tools you are using generate invalid parameters. Docker has nothing to do with it probably.
Can you reproduce it with plain docker commands? instead of the build.sh and the special variable syntax in a local terminal?
So the problem is not Docker-related and not that you have a space, but that you quote the value of your variable in the Makefile.
The workaround helped only because when you start an argument with a single dash character like -v , only the first character will be interpreted as an argument key and the rest is the value. But when you have a space, the same happens and you will have that extra space in the value.
This should work in the first line of your Makefile