From d58d9617b224b5159d1912417cf78f5e57eda113 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 17 Dec 2022 19:02:48 +0000 Subject: [PATCH] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-3035792 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-3035795 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-3092932 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-3092933 - https://snyk.io/vuln/SNYK-UPSTREAM-NODE-3105822 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34e051bc6..844ab6854 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18.7-alpine3.15 AS base +FROM node:hydrogen-alpine3.15 AS base WORKDIR /base COPY package*.json ./ RUN npm ci @@ -21,7 +21,7 @@ WORKDIR /build COPY --from=base /base ./ RUN npm run build -FROM node:18.7-alpine3.15 AS production +FROM node:hydrogen-alpine3.15 AS production ENV NODE_ENV=production SHELL ["/bin/sh", "-c"] RUN apk add --no-cache bash