From 01b677b3b0e29bbffdc3976e0d42b18466288001 Mon Sep 17 00:00:00 2001
From: Julian Rasch <jr662933@fh-muenster.de>
Date: Sat, 2 Mar 2024 16:22:43 +0000
Subject: [PATCH] Try more memory for dash build

---
 Dockerfile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/Dockerfile b/Dockerfile
index 363751a..3fe19fa 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -17,6 +17,12 @@ RUN pip install jupyterlab-gitlab==3.0.0
 # Install jupyterlab-dash
 RUN jupyter labextension install jupyterlab-dash
 
+# Set environment variable for node memory limit
+ENV NODE_OPTIONS="--max-old-space-size=4096"
+
+# Build JupyterLab
+RUN jupyter lab build
+
 # Copy and install additional Python packages
 COPY requirements.txt requirements.txt
 RUN pip install --no-cache-dir -r requirements.txt
-- 
GitLab