Docker runs the app in production.
This commit is contained in:
parent
748d9de02a
commit
7ef6ebb076
@ -14,4 +14,4 @@ COPY . .
|
|||||||
|
|
||||||
EXPOSE ${WEB_PORT}
|
EXPOSE ${WEB_PORT}
|
||||||
|
|
||||||
CMD [ "node", "app.js" ]
|
CMD ["npm", "run", "start"]
|
@ -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": "",
|
||||||
|
Loading…
Reference in New Issue
Block a user