From f7266123add0040c0c9e338834cf34c2d17565c1 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 25 Jul 2024 10:10:24 +0000 Subject: [PATCH] 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 --- apps/frontend/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/frontend/Dockerfile b/apps/frontend/Dockerfile index b0f00211..ba629e62 100644 --- a/apps/frontend/Dockerfile +++ b/apps/frontend/Dockerfile @@ -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 @@ -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 @@ -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