Increase Node memory to prevent out-of-memory errors during build

This commit is contained in:
KarimTamani
2026-03-29 16:08:59 +01:00
parent e342ffa831
commit 7e7f7c7397
+4
View File
@@ -13,6 +13,10 @@ RUN npm config set strict-ssl false && npm install
# Copy source files
COPY . .
# Increase Node memory to prevent out-of-memory errors during build
ENV NODE_OPTIONS=--max-old-space-size=4096
# Build the application
RUN npm run build