From dae2075a91e11df4f01b27f3234fce7aa914f2d0 Mon Sep 17 00:00:00 2001 From: fengkx Date: Tue, 9 Jul 2019 20:39:24 +0800 Subject: [PATCH] update node version in docker add heapdump signal --- Dockerfile | 2 +- package.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6d960301786..8a2f0b06d12 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:10.16.0-alpine +FROM node:12.6-alpine WORKDIR /app COPY . /app ENV NODE_PRODUTION true diff --git a/package.json b/package.json index 2317d8d4db0..aa8439ce1f1 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "noderssbot", - "version": "0.1.0", + "version": "0.2.0", "description": "Another Telegram RSSBot in Node.js", "main": "index.js", "scripts": { - "start": "node -e 'process.env.NODE_PRODUTION = process.env.NODE_PRODUTION || \"production\"; require(\"./index.js\");'", - "dev": "proxychains -q node $NODE_DEBUG_OPTION index", + "start": "node --heapsnapshot-signal=SIGUSR2 -e 'process.env.NODE_PRODUTION = process.env.NODE_PRODUTION || \"production\"; require(\"./index.js\");'", + "dev": "proxychains -q node index", "test": "echo \"Error: no test specified\" && exit 1", "format": "eslint \"**/*.js\" --fix && prettier \"**/*.{js,json,md}\" --write", "lint": "eslint \"**/*.js\" && prettier-check \"**/*.{js,json,md}\""