mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-09-21 14:12:42 +02:00
Update node verison from 18 -> 20 to address security scan issues
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user