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

  • How to have 2 angular based apps which are dockerised running on same ubuntu machine
  • How to deploy AngularJS app using nginx + docker to Elastic Beanstalk?
  • AngularJS NOT WORKING in LARAVEL docker continer
  • AngularDart build with Docker
  • Docker-Compose - Communication with “Internal” Api.
  • Use GitLab CI to deploy app with ftp
  • 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
    

  • How to install docker-engine 1.13 on debian Jessie
  • Bundle optimization for ruby on Docker
  • Pentaho Installed on Docker Container Not able to connect host mysql if firewall is up
  • Jenkins plugin for docker
  • I can't run swift in docker using ubuntu14.04
  • Connection refused in Kubernetes
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.