Skip to content

Commit dae2075

Browse files
committed
update node version in docker add heapdump signal
1 parent 9c04118 commit dae2075

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:10.16.0-alpine
1+
FROM node:12.6-alpine
22
WORKDIR /app
33
COPY . /app
44
ENV NODE_PRODUTION true

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "noderssbot",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Another Telegram RSSBot in Node.js",
55
"main": "index.js",
66
"scripts": {
7-
"start": "node -e 'process.env.NODE_PRODUTION = process.env.NODE_PRODUTION || \"production\"; require(\"./index.js\");'",
8-
"dev": "proxychains -q node $NODE_DEBUG_OPTION index",
7+
"start": "node --heapsnapshot-signal=SIGUSR2 -e 'process.env.NODE_PRODUTION = process.env.NODE_PRODUTION || \"production\"; require(\"./index.js\");'",
8+
"dev": "proxychains -q node index",
99
"test": "echo \"Error: no test specified\" && exit 1",
1010
"format": "eslint \"**/*.js\" --fix && prettier \"**/*.{js,json,md}\" --write",
1111
"lint": "eslint \"**/*.js\" && prettier-check \"**/*.{js,json,md}\""

0 commit comments

Comments
 (0)