Here is the explanation from the doc on how to use the cp command in docker, which will fix your issue with /. at the end of SRC_PATH:
SRC_PATHdoes not end with/.(that is: slash followed by dot)
- the source directory is copied into this directory
 SRC_PATHdoes end with/.(that is: slash followed by dot)
- the content of the source directory is copied into this directory