Browse Source

Avoid NPM when starting Dockerfile

skip-language-service-when-defaulted
Julian Simioni 7 years ago committed by Peter Johnson
parent
commit
a8a6991b26
  1. 2
      Dockerfile
  2. 2
      bin/start
  3. 2
      package.json

2
Dockerfile

@ -22,4 +22,4 @@ COPY . ${WORK}
RUN npm test RUN npm test
# start service # start service
CMD [ "npm", "start" ] CMD [ "./bin/start" ]

2
bin/start

@ -0,0 +1,2 @@
#!/bin/bash
exec node index.js

2
package.json

@ -12,7 +12,7 @@
"coverage": "node_modules/.bin/istanbul cover test/unit/run.js", "coverage": "node_modules/.bin/istanbul cover test/unit/run.js",
"docs": "./bin/generate-docs", "docs": "./bin/generate-docs",
"lint": "jshint .", "lint": "jshint .",
"start": "node index.js", "start": "./bin/start",
"test": "npm run unit", "test": "npm run unit",
"travis": "npm run check-dependencies && npm test", "travis": "npm run check-dependencies && npm test",
"unit": "./bin/units", "unit": "./bin/units",

Loading…
Cancel
Save