Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Commit 2aa8744

Browse files
committed
prevent privilege dropping when doing postinstall command of npm
npm/npm#3497 (comment)
1 parent 811cd4f commit 2aa8744

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
unsafe-perm = true

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
FROM node:14-alpine
22

3+
COPY .npmrc /app/
34
COPY package*.json /app/
45
COPY src/api/package*.json /app/src/api/
56

0 commit comments

Comments
 (0)