Dockerfile Build Error When Running Rpm npm

I start the Docker build using the Docker file to create the image. But I get an error when installing npm:

Docker file:

# Download Runnable-web Repo
RUN eval $(ssh-agent) > /dev/null && ssh-add /.ssh/id_rsa && git clone git@github.com:CodeNow/runnable-web.git 

WORKDIR runnable-web 
RUN npm install 
RUN bower install  --allow-root

Error:

Step 5 : RUN npm install
 ---> Running in 3fefdf5af71d
npm ERR! install Couldn't read dependencies
npm ERR! Error: ENOENT, open '/runnable-web/package.json'
 If you need help, you may report this log at:
     <http://github.com/isaacs/npm/issues>
 or email it to:
     <npm-@googlegroups.com>

 Linux 3.13.0-24-generic
 "/usr/local/bin/node" "/usr/local/bin/npm" "install"
+4
source share
1 answer

I tried it in a directory C:\that is a generic driver. It gives the same error with yours.

enter image description here

Then I move Dockerfileto a subdirectory, for example C:\Intel, and cd starts it docker build ., it works

enter image description here

So, I think Dockerfileit should not be placed in the root directory of a shared dirver.

0
source

Source: https://habr.com/ru/post/1542607/


All Articles