use "npm start" for docker env

This commit is contained in:
BuckarooBanzay 2020-03-26 10:23:05 +01:00
parent 9c7b328bf1
commit ae04cd899c
2 changed files with 3 additions and 2 deletions

View File

@ -24,4 +24,4 @@ WORKDIR /data
EXPOSE 8080
CMD ["node", "src/index.js"]
CMD ["npm", "start"]

View File

@ -4,7 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "cd src && jshint . && cd ../public/js/ && jshint ."
"test": "cd src && jshint . && cd ../public/js/ && jshint .",
"start": "node src/index.js"
},
"author": "",
"license": "ISC",