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

  • Elastic search with docker does not start
  • Dockerize your Angular NodeJS application
  • Docker and Chromium net::ERR_NETWORK_CHANGED
  • Use GitLab CI to deploy app with ftp
  • Using private svn+bower doesn't work in dockerfile
  • docker with bower, grunt
  • 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
    

  • Gogits do not start as docker container
  • Docker for Mac and --host option
  • Can't start working with docker
  • What deletes docker images periodically?
  • How to access docker container via its Ip from the host
  • Node npm test to seeded postgres, Docker network container seeing varying results
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.