Skip to content

Commit

Permalink
fix: update npm in production images to resolve crossspawn vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnyowenpowell committed Jan 15, 2025
1 parent f17a9c1 commit 632a899
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions Dockerfile.ubi9
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 632a899

Please sign in to comment.