mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01:00
fix: vite build issue: set memory limit for Node.js to 2048 MB
This commit is contained in:
parent
83d0443c8a
commit
942a85f531
1 changed files with 2 additions and 0 deletions
|
|
@ -6,6 +6,8 @@ COPY /client/package*.json /client/
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
# Copy the current directory contents into the container at /client
|
# Copy the current directory contents into the container at /client
|
||||||
COPY /client/ /client/
|
COPY /client/ /client/
|
||||||
|
# Set the memory limit for Node.js
|
||||||
|
ENV NODE_OPTIONS="--max-old-space-size=2048"
|
||||||
# Build webpack artifacts
|
# Build webpack artifacts
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue