Skip to content

Commit 8cfb5e3

Browse files
Add NODE_ENV=production to dockerfile & Change CMD to use array for better SIGTERM handling (#12)
- Add NODE_ENV=production to dockerfile - Change CMD to use array for better SIGTERM handling
1 parent b1177e8 commit 8cfb5e3

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@ COPY ./src/ /machine
1212

1313
USER node
1414

15-
CMD node index.js
15+
ENV NODE_ENV=production
16+
17+
CMD ["node", "index.js"]

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,12 @@ For any issue, there are fundamentally three ways an individual can contribute:
213213

214214
## Changelog
215215

216+
- 1.0.3
217+
- Add NODE_ENV=production to dockerfile
218+
- Change CMD to use array for better SIGTERM handling
219+
216220
- 1.0.2
217-
- Add environmental variable for MQTT Port
221+
- Add an environmental variable for MQTT Port
218222
- Fix typos
219223
- Add logging of mqttClient errors
220224
- Upgrade MQTT library to v4.2.1

0 commit comments

Comments
 (0)