Scripts in shell script not being executed in docker
I use a docker in Elastic Beanstalk to deploy an Angular app. At the end of docker deployment a script is used to execute a start.sh shell script. I use shell script to install bower components.It works perfectly fine. But if I include some scripts to install some grunt dependencies and to then to run the grunt command none of the grunt dependencies nor the bower components(I think so) gets installed. I have to manually install all the grunt dependencies and run the grunt task via ssh to get it to work. What possibly could be the problem and how do I fix this?
Below is my shell script
npm install bower --allow-root update npm install grunt-npm-install --save-dev npm install grunt-bg-shell --save-dev npm install -g grunt-cli npm install grunt-contrib-uglify --save-dev grunt