From 4c9765bf274da337540f15e1c6df7a299bd9c66b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 19 Aug 2022 22:10:02 +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-2946428 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946723 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946727 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-2946729 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 41d2cc8..55745f1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # First image to compile typescript to javascript -FROM node:16.14.2-alpine AS build-image +FROM node:16.16.0-alpine AS build-image WORKDIR /app COPY . . RUN npm ci @@ -7,7 +7,7 @@ RUN npm run build RUN npm test # Second image, that creates an image for production -FROM node:16.14.2-alpine AS prod-image +FROM node:16.16.0-alpine AS prod-image WORKDIR /app COPY --from=build-image ./app/dist ./dist COPY package* ./