From 942a85f53179f7647eb78a750d660e302deff830 Mon Sep 17 00:00:00 2001 From: Daniel Avila Date: Sun, 9 Apr 2023 07:35:10 -0400 Subject: [PATCH] fix: vite build issue: set memory limit for Node.js to 2048 MB --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index ff1163c12f..8188236a02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,8 @@ COPY /client/package*.json /client/ RUN npm ci # Copy the current directory contents into the container at /client COPY /client/ /client/ +# Set the memory limit for Node.js +ENV NODE_OPTIONS="--max-old-space-size=2048" # Build webpack artifacts RUN npm run build