Docker runs the app in production.

This commit is contained in:
Tom 2024-12-06 18:18:17 +00:00
parent 748d9de02a
commit 7ef6ebb076
2 changed files with 3 additions and 1 deletions

View File

@ -14,4 +14,4 @@ COPY . .
EXPOSE ${WEB_PORT} EXPOSE ${WEB_PORT}
CMD [ "node", "app.js" ] CMD ["npm", "run", "start"]

View File

@ -3,6 +3,8 @@
"version": "0.0.0", "version": "0.0.0",
"main": "app.js", "main": "app.js",
"scripts": { "scripts": {
"start": "NODE_ENV=production node app.js",
"dev": "NODE_ENV=development node app.js",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "", "author": "",