Skip to content

Commit

Permalink
Add support for additional dependencies through /app/package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
erikap committed Apr 8, 2017
1 parent 403cbbc commit 7095973
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ RUN npm install
CMD sh boot.sh

ONBUILD ADD . /app/
ONBUILD RUN cd /usr/src/app && npm install
ONBUILD RUN cd /usr/src/app && npm install && npm install /app
2 changes: 2 additions & 0 deletions boot.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#! /bin/sh

## Install new dependencies
npm install /app
npm install

./node_modules/supervisor/lib/cli-wrapper.js \
Expand Down

0 comments on commit 7095973

Please sign in to comment.