Skip to content

Commit

Permalink
fix: cpu usage 100% in node@6.x (#1470)
Browse files Browse the repository at this point in the history
1.  cpu usage 100% almost all the time, and I found that it have been fixed in node@12
     just like: libuv/libuv#2162
2. only prod-dependences needed
  • Loading branch information
vincentmrlau authored and fengmk2 committed May 24, 2019
1 parent 3ffe576 commit f084eba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
@@ -1,4 +1,4 @@
FROM node:6.11
FROM node:12
MAINTAINER Bono Lv <lvscar {aT} gmail.com>

# Working enviroment
Expand All @@ -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/
Expand Down

0 comments on commit f084eba

Please sign in to comment.