Skip to content

Commit 7095973

Browse files
committed
Add support for additional dependencies through /app/package.json
1 parent 403cbbc commit 7095973

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ RUN npm install
1414
CMD sh boot.sh
1515

1616
ONBUILD ADD . /app/
17-
ONBUILD RUN cd /usr/src/app && npm install
17+
ONBUILD RUN cd /usr/src/app && npm install && npm install /app

boot.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#! /bin/sh
2+
23
## Install new dependencies
4+
npm install /app
35
npm install
46

57
./node_modules/supervisor/lib/cli-wrapper.js \

0 commit comments

Comments
 (0)