From f084ebae2106c8d4435dc0385e493fe18c6cec8a Mon Sep 17 00:00:00 2001 From: Yiman Liu <413893093@qq.com> Date: Fri, 24 May 2019 12:50:29 +0800 Subject: [PATCH] fix: cpu usage 100% in node@6.x (#1470) 1. cpu usage 100% almost all the time, and I found that it have been fixed in node@12 just like: https://github.com/libuv/libuv/issues/2162 2. only prod-dependences needed --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cfcd966f1..9e353254b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:6.11 +FROM node:12 MAINTAINER Bono Lv # Working enviroment @@ -14,7 +14,7 @@ COPY package.json ${CNPM_DIR} RUN npm set registry https://registry.npm.taobao.org -RUN npm install +RUN npm install --production COPY . ${CNPM_DIR} COPY docs/dockerize/config.js ${CNPM_DIR}/config/