Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: change memory limit fallback

Sidwebworks188f153997a2
diff --git a/apps/erp/Dockerfile b/apps/erp/Dockerfile
index 0ebb427489..88ba7058bd 100644
--- a/apps/erp/Dockerfile
+++ b/apps/erp/Dockerfile
@@ -12,7 +12,7 @@ RUN npm install --legacy-peer-deps
FROM deps AS build
ARG NODE_OPTIONS
-ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=16384"}
+ENV NODE_OPTIONS="--max-old-space-size=8024"
# Build only ERP and its deps
RUN npx turbo run build --filter=./apps/erp
diff --git a/apps/mes/Dockerfile b/apps/mes/Dockerfile
index e196e14330..262eda5f26 100644
--- a/apps/mes/Dockerfile
+++ b/apps/mes/Dockerfile
@@ -12,7 +12,7 @@ RUN npm install --legacy-peer-deps
FROM deps AS build
ARG NODE_OPTIONS
-ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=4096"}
+ENV NODE_OPTIONS="--max-old-space-size=4096"
# Build only MES and its deps
RUN npx turbo run build --filter=./apps/mes