Ao fazer executar o dockerfile ele fica travado no comando npm e depois apresenta um erro.
docker build -f dockerfile -t renato/vue .
Sending build context to Docker daemon  347.6kB
Step 1/7 : FROM  node:latest
 ---> c1117121e3de
Step 2/7 : MAINTAINER Renato Rebouças
 ---> Using cache
 ---> 18d8f2e7b11d
Step 3/7 : COPY . /var/www
 ---> Using cache
 ---> d6a3788b7cf4
Step 4/7 : WORKDIR  /var/www
 ---> Using cache
 ---> 567100d93468
Step 5/7 : RUN npm install
 ---> Running in 305a06f7b0aa
> uglifyjs-webpack-plugin@0.4.6 postinstall /var/www/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js
> electron@1.7.11 postinstall /var/www/node_modules/electron
> node install.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 930 packages from 670 contributors and audited 7541 packages in 271.33s
found 0 vulnerabilities
Removing intermediate container 305a06f7b0aa
 ---> 1e2ebfbebb03
Step 6/7 : ENTRYPOINT [ "npm", "start"]
 ---> Running in d5b3f63a1747
Removing intermediate container d5b3f63a1747
 ---> ae35d66c8b40
Step 7/7 : EXPOSE 3000
 ---> Running in 672e64719fcb
Removing intermediate container 672e64719fcb
 ---> f68d43a9d650
Successfully built f68d43a9d650
meu package.json é o seguinte
{
  "name": "alurapic",
  "description": "A Vue.js project",
  "version": "1.0.0",
  "author": "renatoReboucas <renato190698@gmail.com>",
  "license": "MIT",
  "private": true,
  "scripts": {
    "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
    "build": "cross-env NODE_ENV=production webpack --progress --hide-modules"
  },
  "dependencies": {
    "bootstrap": "^4.1.1",
    "font-awesome": "^4.7.0",
    "jquery": "^3.3.1",
    "mdbootstrap": "^4.5.5",
    "style-loader": "^0.21.0",
    "vue": "^2.5.11",
    "vue-resource": "^1.0.3",
    "vue-router": "^3.0.1"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions",
    "not ie <= 8"
  ],
  "devDependencies": {
    "@vue/devtools": "^1.1.0",
    "babel-core": "^6.26.0",
    "babel-loader": "^7.1.2",
    "babel-preset-env": "^1.6.0",
    "babel-preset-stage-3": "^6.24.1",
    "cross-env": "^5.0.5",
    "css-loader": "^0.28.11",
    "file-loader": "^1.1.4",
    "vue-loader": "^13.0.5",
    "vue-template-compiler": "^2.4.4",
    "webpack": "^3.6.0",
    "webpack-dev-server": "^2.9.1"
  }
}