Skip to content

Commit

Permalink
[Snyk] Security upgrade node from lts-alpine to 20.15.1-alpine3.20 (#832
Browse files Browse the repository at this point in the history
)

fix: apps/frontend/Dockerfile to reduce vulnerabilities

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

Co-authored-by: snyk-bot <snyk-bot@snyk.io>
  • Loading branch information
origranot and snyk-bot committed Jul 27, 2024
1 parent 95a86f2 commit 9044df0
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:lts-alpine as dependencies
FROM node:20.15.1-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:lts-alpine as build
FROM node:20.15.1-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:lts-alpine as production
FROM node:20.15.1-alpine3.20 as production
WORKDIR /app

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

0 comments on commit 9044df0

Please sign in to comment.