diff --git a/.gitignore b/.gitignore index 885c9f0..2bd682e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules db +.vimrc diff --git a/Dockerfile b/Dockerfile index 3670024..970d9a9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,19 @@ -FROM node:0.12.4-onbuild +FROM node:4.1.2 + EXPOSE 3000 -RUN mkdir /usr/src/app/db + +RUN mkdir -p /usr/src/app +WORKDIR /usr/src/app +RUN mkdir -p /usr/src/app/db VOLUME ["/usr/src/app/db"] + +RUN npm install -g nodemon +RUN apt-get update && apt-get install -y vim git +COPY .vimrc ~/.vimrc + +COPY package.json /usr/src/app/ +RUN npm install +COPY . /usr/src/app + +# Use nodemon to start app, note this will break if main file no longer named server.js. +CMD [ "nodemon", "server.js" ] diff --git a/views/index.hbs b/views/index.hbs index dd02427..ee2ed39 100644 --- a/views/index.hbs +++ b/views/index.hbs @@ -16,7 +16,7 @@