Update node verison from 18 -> 20 to address security scan issues

This commit is contained in:
Weves
2023-09-15 09:24:49 -07:00
committed by Chris Weaver
parent e549d2bb4a
commit 1d945becab
4 changed files with 456 additions and 10 deletions

View File

@@ -1,4 +1,4 @@
FROM node:18-alpine AS base
FROM node:20-alpine AS base
# Step 1. Install dependencies only when needed
FROM base AS deps
@@ -14,9 +14,6 @@ RUN \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi
# needed for image processing
RUN npm i sharp
# Step 2. Rebuild the source code only when needed
FROM base AS builder