[docker build image failed-npmsTALL]

  docker, question
  1. Today, I created a new dockerfile file. I want to use Docker to create a mirror image of my project and save it.

The structure of the project is as follows:
clipboard.png

Docker’s configuration file is as follows:

FROM node:4.6.2
 RUN mkdir  /runDocker
 WORKDIR /runDocker
 COPY . /runDocker
 RUN npm install
 EXPOSE 5000
 CMD [ "npm", "start" ]

The following command is configured in package.json:

"scripts": {
 "start": "webpack-dev-server  --inline --hot --display-error-details  --history-api-fallback  --progress --colors --port 5000 --host 0.0.0.0",
 }

In progressdocker build -t test:1.0 .When I met the following problems, google and baidu failed, see if anyone also met this problem?

I feel that I am aware of the problem with npm install and have tried to change the version number of node, but this problem always occurs.

Screen Shot 2016-12-12 at 16.57.04.png
clipboard.png

Thank you for your answer.

These red colors are not errors, npm is installing the package, and the next command will be issued after the installation.EXPOSE 5000In the end, it will be executedCMD [ "npm", "start" ]