You are not executing a shell script in your Docker file, you set the shell script as CMD for the container. It is recommended to use absolute paths in ENTRYPOINT (if declared) and CMD (if declared), as it ensures the files can be accessed.
You also can make imports and configs in the docker-compose. Or alternatively try multi staged building for separate operations. The RUNS are definitely going to be slowing you down quite a bit.
if you don't mind sharing the exact error your getting?