aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile13
-rw-r--r--package.json2
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"