From 53544b55b46241eae9d73162165a147f6cfbee7f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 16 Aug 2023 14:51:12 +0000 Subject: [PATCH] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE315-ZLIB-2976173 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-3035795 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-3326683 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5741793 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-5811867 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f688245..4ad0b3d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ ### STAGE 1: Build ### -FROM node:16.13-alpine AS build +FROM node:16.20.2-alpine AS build WORKDIR /usr/src/app COPY package.json yarn.lock ./ RUN apk --no-cache add git @@ -8,7 +8,7 @@ COPY . . RUN yarn run build:ssr ### STAGE 2: DEPLOY -FROM node:16.13-alpine +FROM node:16.20.2-alpine WORKDIR /usr/src/app RUN apk --no-cache add curl COPY --from=build /usr/src/app/dist/MobileSpectrum ./dist/MobileSpectrum