Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Docker updates #122

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
FROM node:4.3.1
FROM node:6
LABEL maintainer="Laura Santamaria <[email protected]>"

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
Expand All @@ -14,5 +15,5 @@ COPY . /usr/src/app

EXPOSE 8080

USER node
USER nodeusr
CMD [ "npm", "start" ]
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,19 @@
"start": "node app.js"
},
"author": "Ken Perkins <[email protected]>",
"repository": {
"type": "git",
"url": "git://github.com/deconst/content-service.git"
},
"license": "MIT",
"dependencies": {
"async": "2.0.0-rc.2",
"cheerio": "^0.19.0",
"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",
Expand Down