From 2d4402b90cc5c466410caf783674576ce4a022da Mon Sep 17 00:00:00 2001 From: Sohel Zerdoumi Date: Sun, 5 Jun 2016 21:49:55 +0200 Subject: [PATCH] Added Dockerfile + Change storage default to 'file' --- .gitignore | 1 + Dockerfile | 18 ++++++++++++++++++ config.js | 8 ++------ 3 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 Dockerfile diff --git a/.gitignore b/.gitignore index a865156..d6e53cd 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ node_modules *.swo data *.DS_Store +.idea \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..246ed2d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM centos:centos6 +RUN yum install -y epel-release +RUN yum install -y nodejs npm + +# Create app directory +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app + +# Install app dependencies +COPY package.json /usr/src/app/ +RUN npm install + +# Bundle app source +COPY . /usr/src/app + +EXPOSE 7777 +CMD [ "npm", "start" ] + diff --git a/config.js b/config.js index 52ad004..d3e5048 100644 --- a/config.js +++ b/config.js @@ -33,15 +33,11 @@ }, "storage": { - "type": "redis", - "host": "0.0.0.0", - "port": 6379, - "db": 2, - "expire": 2592000 + "path": "./data", + "type": "file" }, "documents": { "about": "./about.md" } - }