This is full example how to install bower for docker with centos
Dockerfile
FROM centos
RUN useradd -ms /bin/bash bower
RUN yum install -y gcc-c++ make
RUN curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -
RUN yum install -y nodejs
# install bower
RUN npm install --global bower
USER bower
#this should show bower help - try to use install instead
RUN bower help
and in the building phase of this docker image you should see something like below. Its indicate (in the build phase) that you successfully installed bower.
Try to change help to install and also add your docker commands - WORDIR ./Frontend
etc.
Step 8 : RUN bower help
---> Running in 2afd81510166
Usage:
bower <command> [<args>] [<options>]
Commands:
cache Manage bower cache
help Display help information about Bower
home Opens a package homepage into your favorite browser