From a838eb2bd0b68633ff07093fb374964349657261 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 9 Jun 2022 19:11:43 +0000 Subject: [PATCH] fix: sections/examples/dockerfile/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-1055465 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-1315789 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-1534880 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-1540540 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-674659 --- sections/examples/dockerfile/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sections/examples/dockerfile/Dockerfile b/sections/examples/dockerfile/Dockerfile index 19d89f70a..a1f78171f 100644 --- a/sections/examples/dockerfile/Dockerfile +++ b/sections/examples/dockerfile/Dockerfile @@ -3,7 +3,7 @@ # In the second stage, we start fresh and only copy necessary files. We also purge node_modules devDependencies. #### Build stage #### -FROM node:14.8.0-alpine AS build +FROM node:14.18.3-alpine AS build # Install system build dependencies (if needed) at the top ✅ See bullet point #8.8 about caching RUN apk add --update --no-cache bash make gcc g++ lcms2-dev libpng-dev autoconf automake @@ -22,7 +22,7 @@ RUN npm run build #### Run-time stage #### # ✅ See bullet point #8.10 about smaller docker base images -FROM node:14.8.0-alpine as app +FROM node:14.18.3-alpine as app # Set non-root user and expose port 3000 USER node