From 96f777a620817cab63ba5b8b402bf859e73cf6f2 Mon Sep 17 00:00:00 2001 From: Laura Santamaria Date: Tue, 3 Oct 2017 15:38:00 -0500 Subject: [PATCH] updating docker image to new node LTS, update maintainer, fix bugs, update dependencies --- Dockerfile | 7 ++++--- package.json | 8 ++++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 06626c8..3219317 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ -FROM node:4.3.1 +FROM node:6 +LABEL maintainer="Laura Santamaria " ENV NPM_CONFIG_LOGLEVEL=warn -RUN useradd node +RUN useradd nodeusr RUN npm install -g nodemon RUN mkdir -p /home/node /usr/src/app && chown -R node:node /home/node @@ -14,5 +15,5 @@ COPY . /usr/src/app EXPOSE 8080 -USER node +USER nodeusr CMD [ "npm", "start" ] diff --git a/package.json b/package.json index 2453d9d..6848bdc 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,10 @@ "start": "node app.js" }, "author": "Ken Perkins ", + "repository": { + "type": "git", + "url": "git://github.com/deconst/content-service.git" + }, "license": "MIT", "dependencies": { "async": "2.0.0-rc.2", @@ -15,8 +19,8 @@ "elasticsearch": "^9.0.2", "json-stable-stringify": "^1.0.1", "lodash": "^3.8.0", - "mongodb": "2.0.27", - "pkgcloud": "1.1.0", + "mongodb": "^2.0.27", + "pkgcloud": "^1.1.0", "raw-body": "2.1.6", "request": "^2.69.0", "restify": "4.0.0",