When I run the command npm run func start cloud function failed to start because inside the container start.sh, file not found in the scripts directory.
then I checked inside the container to see if it's really not there with the docker exec containerID ls scripts command and there are only 5 .sh files available inside the container, so some files are missing including start.sh.
but other files are available in the project directory. I think when building the docker image those files are not available in the scripts directory ( clocal-gcp\src\services\cloud-functions\scripts ).
To solve this issue, need to build a new image and push it to org ( I can't fix this issue because I don't have access to push it to org ).
With the image, I build it worked (sachith101/cloud-function)
When I run the command![func-start](https://user-images.githubusercontent.com/40508640/112618496-32732e00-8e4c-11eb-8291-5642c41367f0.png)
npm run func start
cloud function failed to start because inside the container start.sh, file not found in the scripts directory.then I checked inside the container to see if it's really not there with the![insid-scripts-directory](https://user-images.githubusercontent.com/40508640/112618994-c6dd9080-8e4c-11eb-94b8-4ced3ff0ce73.png)
docker exec containerID ls scripts
command and there are only 5 .sh files available inside the container, so some files are missing including start.sh.but other files are available in the project directory. I think when building the docker image those files are not available in the scripts directory ( clocal-gcp\src\services\cloud-functions\scripts ).
To solve this issue, need to build a new image and push it to org ( I can't fix this issue because I don't have access to push it to org ).
With the image, I build it worked (sachith101/cloud-function)