Chained the Run command to reduce initial build size -  Update your packages and install the ones that are needed to compile Ruby
RUN apt-get update -y && \
        apt-get upgrade -y && \
        apt-get install -y curl libxml2-dev libxslt-dev libcurl4-openssl-dev libreadline6-dev libssl-dev patch build-essential zlib1g-dev openssh-server libyaml-dev libicu-dev && \
        apt-get install -y git nodejs npm ruby mongodb

Sym linking Node for Ubuntu
RUN ln -s /usr/bin/nodejs /usr/bin/node

Installing Grunt and Bower
RUN npm install -g bower && \
        npm install -g grunt-cli

ENV GIT_SSL_NO_VERIFY 1