From 3a9411e90d741ed60113537894598711f9c8deea Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 23 Mar 2024 14:00:16 +0000 Subject: [PATCH] fix: Dockerfile to reduce vulnerabilities --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 254087a6..f308d71e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,18 @@ -FROM node:18.18.2-alpine3.18 AS build-env +FROM node:18.19.1-alpine3.18 AS build-env WORKDIR /sweater-comb COPY ["package.json", "package-lock.json", "./"] RUN npm ci COPY . . RUN npm run build -FROM node:18.18.2-alpine3.18 AS clean-env +FROM node:18.19.1-alpine3.18 AS clean-env COPY --from=build-env /sweater-comb/build/ /sweater-comb/ COPY --from=build-env /sweater-comb/babel.config.js /sweater-comb/ COPY --from=build-env /sweater-comb/package*.json /sweater-comb/ WORKDIR /sweater-comb RUN npm install --production -FROM node:18.18.2-alpine3.18 +FROM node:18.19.1-alpine3.18 ENV NODE_ENV production COPY --from=clean-env /sweater-comb/ /sweater-comb/ WORKDIR /sweater-comb