Docker runs the app in production.
This commit is contained in:
parent
748d9de02a
commit
7ef6ebb076
@ -14,4 +14,4 @@ COPY . .
|
||||
|
||||
EXPOSE ${WEB_PORT}
|
||||
|
||||
CMD [ "node", "app.js" ]
|
||||
CMD ["npm", "run", "start"]
|
@ -3,6 +3,8 @@
|
||||
"version": "0.0.0",
|
||||
"main": "app.js",
|
||||
"scripts": {
|
||||
"start": "NODE_ENV=production node app.js",
|
||||
"dev": "NODE_ENV=development node app.js",
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"author": "",
|
||||
|
Loading…
Reference in New Issue
Block a user