Im trying to exec bower install on node:4.1.2 docker container from the dockerfile.
Part of my dockerfile is like this:
#Install bower to command line
RUN npm install -g bower
# Define the host folder that will contain the code
WORKDIR /application
# Copy src to application host folder**
ADD . /application
# RUN move to /application/public/webapp where there is a bower.json file and install it**
RUN cd public/webapp && bower install --allow-root --config.interactive=false
ENTRYPOINT ["npm"]
CMD ["start"]
I build it and up it.
This dockerfile does not build the bower_components folder despite of showing:
Step 9 : RUN cd public/webapp && bower install --allow-root --config.interactive=false
---> Running in 937ad6c21887
/application/public/admintool
bower angular#1.4.7 not-cached git://github.com/angular/bower-angular.git#1.4.7
bower angular#1.4.7 resolve git://github.com/angular/bower-angular.git#1.4.7
bower angular#1.4.7 download https://github.com/angular/bower-angular/archive/v1.4.7.tar.gz
bower angular#1.4.7 extract archive.tar.gz
bower angular#1.4.7 resolved git://github.com/angular/bower-angular.git#1.4.7
bower angular#1.4.7 install angular#1.4.7
angular#1.4.7 bower_components/angular
If I get into the container, bower is recognized as a command (it installed it). Running bower install from /application/public/webapp works if Im inside the container. From dockerfile it just does not do anything. Neither it complains.
Does anyone knows why?