File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ WORKDIR /usr/src/app
12
12
COPY . /usr/src/app
13
13
14
14
RUN ln -s /app/app.js /usr/src/app/
15
- RUN npm install
15
+ RUN npm config set unsafe-perm true && npm install
16
16
17
17
CMD sh boot.sh
18
18
@@ -23,4 +23,4 @@ ONBUILD RUN if [ -f /app/on-build.sh ]; \
23
23
&& chmod +x /app/on-build.sh \
24
24
&& /bin/bash /app/on-build.sh ;\
25
25
fi
26
- ONBUILD RUN if [ -f "/app/package.json" ]; then npm install /app; fi
26
+ ONBUILD RUN if [ -f "/app/package.json" ]; then npm config set unsafe-perm true && npm install /app; fi
Original file line number Diff line number Diff line change 7
7
-x sh start.sh
8
8
else
9
9
# # Install new dependencies
10
- if [ -f " /app/package.json" ]; then npm install /app; fi
10
+ if [ -f " /app/package.json" ]; then npm config set unsafe-perm true && npm install /app; fi
11
11
# # Boot the app in development mode
12
12
./node_modules/supervisor/lib/cli-wrapper.js \
13
13
-w /usr/src/app,/app \
You can’t perform that action at this time.
0 commit comments