feat: add production scripts and better Dockerfile

Closes: #710
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-11-07 09:26:17 -05:00
parent 42ef7cfdce
commit 0d14500d5d
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -32,6 +32,8 @@ WORKDIR /app
COPY --from=builder /build/node_modules/ node_modules/
COPY --from=builder /build/build/ build/
COPY package.json package.json
COPY version.txt version.txt
CMD [ "node", "./build/index.js" ]
ENTRYPOINT ["npm", "run"]
CMD ["start:production"]
+3 -1
View File
@@ -9,7 +9,9 @@
"lint:fix": "xo --fix",
"start": "npm run build && node build/index.js",
"start:dev": "nodemon --config nodemon.json",
"test:notification": "npm run build && node build/__test__/notification-test.js"
"start:production": "node build/index.js",
"test:notification": "npm run build && node build/__test__/notification-test.js",
"test:notification:production": "node build/__test__/notification-test.js"
},
"repository": {
"type": "git",