-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update npm in production images to resolve crossspawn vuln
- Loading branch information
1 parent
f17a9c1
commit 632a899
Showing
2 changed files
with
3 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,6 +30,8 @@ RUN apk update | |
RUN apk upgrade | ||
RUN apk --no-cache add dumb-init skopeo curl bash python3 | ||
|
||
RUN npm install -g [email protected] | ||
|
||
RUN addgroup -S -g 10001 snyk | ||
RUN adduser -S -G snyk -h /srv/app -u 10001 snyk | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,6 +60,7 @@ COPY LICENSE /licenses/LICENSE | |
ENV NODE_ENV=production | ||
|
||
RUN yum upgrade -y | ||
RUN npm install -g [email protected] | ||
|
||
WORKDIR /srv/app | ||
|
||
|