Skip to content

Commit

Permalink
[Snyk] Security upgrade node from 20.15.1-alpine3.20 to 20.17.0-alpin…
Browse files Browse the repository at this point in the history
…e3.20 (#857)

fix: apps/frontend/Dockerfile to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-7895537
- https://snyk.io/vuln/SNYK-ALPINE320-OPENSSL-7895537

Co-authored-by: snyk-bot <[email protected]>
  • Loading branch information
origranot and snyk-bot authored Oct 1, 2024
1 parent 3b44c8b commit 1eb65a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.15.1-alpine3.20 as dependencies
FROM node:20.17.0-alpine3.20 as dependencies
WORKDIR /app

# Install Python for node-gyp
Expand All @@ -8,7 +8,7 @@ COPY package*.json ./
RUN npm ci

# Build Stage
FROM node:20.15.1-alpine3.20 as build
FROM node:20.17.0-alpine3.20 as build
WORKDIR /app

# Arguments passed from docker-compose.yml / workflow
Expand All @@ -28,7 +28,7 @@ RUN npx nx build frontend --prod --skip-nx-cache \
&& npm prune --production

# Production Stage
FROM node:20.15.1-alpine3.20 as production
FROM node:20.17.0-alpine3.20 as production
WORKDIR /app

COPY --from=build /app/dist/apps/frontend ./frontend
Expand Down

0 comments on commit 1eb65a0

Please sign in to comment.