I m actually having some problem when trying to create an image with a simple remote project.
In , fact during the process, I try to launch “npm test”. Actually, the software telles me that the “package.json” doesn’t exist.
In fact, it exists, npm install works just like 3 little below.
Can you help me ?
My DockerFile :
FROM phusion/baseimage:0.9.17 # Use baseimage-docker's init system. CMD ["/sbin/my_init"] # Install corresponding packages # Git, pm2, curl RUN apt-get update && apt-get install -y \ git \ curl # Downloading NodeJs v0.12 RUN curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash - RUN apt-get install -y nodejs # Cloning repository, could change with the good project git repository RUN git clone https://github.com/Skahrz/test-docker.git # Install global dependencies RUN npm install -g mocha gulp # Move inside of the project RUN cd test-docker && npm install # Install local dependencies RUN npm install esdoc # Pre-production tasks && testing RUN npm test # Documentation generation RUN esdoc -c esdoc.json # Start the project as a daemon #more informations to have pm2 reports on the github page : https://github.com/Unitech/pm2 RUN pm2 start dist/app.js # Clean up APT when done. RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*