diff options
author | Noah Loomans <noahloomans@gmail.com> | 2017-07-28 10:36:02 +0200 |
---|---|---|
committer | Noah Loomans <noahloomans@gmail.com> | 2017-07-28 10:36:02 +0200 |
commit | 5bcb534ab6afbada0cc373f26d207ada35bc07ec (patch) | |
tree | 20b5a47743dfd32c5c84000fd932b67b8c524a86 | |
parent | c65915f06b4b02a631bc63f0de4347ab2a070cab (diff) |
Add docker support
-rw-r--r-- | Dockerfile | 13 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 14 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..700b691 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM node:6.10 + +WORKDIR /app + +ADD . /app + +RUN npm run setup + +EXPOSE 80 + +ENV PORT 80 + +CMD ["npm", "start"] diff --git a/package.json b/package.json index 6bded05..dc18e3d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "scripts": { "start": "node ./bin/www", - "setup": "npm install && bower install", + "setup": "npm install && bower install --allow-root", "build-dev": "browserify -d -t [ babelify --presets [ es2015 ] ] -e ./public/javascripts/main.js > ./public/javascripts/bundle.js", "watch": "watchify -v -d -t [ babelify --presets [ es2015 ] ] -e ./public/javascripts/main.js -o ./public/javascripts/bundle.js", "build": "browserify -t [ babelify --presets [ es2015 ] ] -e ./public/javascripts/main.js | uglifyjs -cm > ./public/javascripts/bundle.js" |