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
1212COPY . /usr/src/app
1313
1414RUN ln -s /app/app.js /usr/src/app/
15- RUN npm install
15+ RUN npm config set unsafe-perm true && npm install
1616
1717CMD sh boot.sh
1818
@@ -23,4 +23,4 @@ ONBUILD RUN if [ -f /app/on-build.sh ]; \
2323 && chmod +x /app/on-build.sh \
2424 && /bin/bash /app/on-build.sh ;\
2525 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 77 -x sh start.sh
88else
99 # # 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
1111 # # Boot the app in development mode
1212 ./node_modules/supervisor/lib/cli-wrapper.js \
1313 -w /usr/src/app,/app \
You can’t perform that action at this time.
0 commit comments