Skip to content

Commit

Permalink
feat: runs apk upgrade for security updates (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
avtar authored Oct 21, 2024
1 parent 0ce0808 commit a588e02
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ WORKDIR /usr/src/app

COPY package*.json ./

RUN npm i
# Do not remove the 'apk update && apk upgrade' commands below. Workaround for installing latest
# Alpine security updates in case upstream images don't get built and pushed regularly.
RUN apk update && \
apk upgrade --no-cache && \
npm i

COPY . .

Expand Down

0 comments on commit a588e02

Please sign in to comment.