Skip to content

Commit

Permalink
fix: use base Docker image node:7.10-alpine to reduce image size.
Browse files Browse the repository at this point in the history
  • Loading branch information
gegana committed May 27, 2017
1 parent 5944d4b commit 1a65c10
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM node:7.10
FROM node:7.10-alpine

COPY . /app
WORKDIR /app

RUN npm install
RUN npm install --only=production
CMD [ "npm", "start" ]
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
web:
image: dsumiskum/supermockapi
build: .
links:
- mongo
ports:
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,24 @@
"angular-material": "^1.1.4",
"angular-messages": "^1.6.4",
"body-parser": "~1.15.2",
"browserify": "^14.3.0",
"cookie-parser": "~1.4.3",
"debug": "~2.2.0",
"express": "~4.14.0",
"express-session": "^1.15.3",
"get-parameter-names": "^0.3.0",
"gulp": "^3.9.1",
"hyperwatch": "^0.5.4",
"moment": "^2.18.1",
"mongodb": "^2.2.26",
"morgan": "~1.7.0",
"node-cache": "^4.1.1",
"serve-favicon": "~2.3.0",
"twig": "~0.9.5",
"vinyl-source-stream": "^1.1.0",
"yargs": "^8.0.1"
},
"devDependencies": {
"gulp-nodemon": "^2.2.1",
"standard-version": "^4.0.0"
"standard-version": "^4.0.0",
"vinyl-source-stream": "^1.1.0",
"gulp": "^3.9.1",
"browserify": "^14.3.0"
}
}

0 comments on commit 1a65c10

Please sign in to comment.