From 88587a753d250f5faec1accc55c61a804d1b1faa Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 3 Apr 2022 05:29:00 +0000 Subject: [PATCH] fix: sections/examples/dockerfile/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE311-APKTOOLS-1534687 - https://snyk.io/vuln/SNYK-ALPINE311-OPENSSL-1089242 - https://snyk.io/vuln/SNYK-ALPINE311-OPENSSL-1569447 - https://snyk.io/vuln/SNYK-ALPINE311-OPENSSL-1569451 - https://snyk.io/vuln/SNYK-ALPINE311-OPENSSL-1569451 --- 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..b8edf95ab 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.19-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.19-alpine as app # Set non-root user and expose port 3000 USER node