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: docker build

Sidwebworksd0f7f5b8d1a8
diff --git a/apps/erp/Dockerfile b/apps/erp/Dockerfile
index 7525a6a30c..74fd8abfb5 100644
--- a/apps/erp/Dockerfile
+++ b/apps/erp/Dockerfile
@@ -15,7 +15,7 @@ ARG NODE_OPTIONS
ENV NODE_OPTIONS="--max-old-space-size=8024"
# Build only ERP and its deps
RUN npx lingui compile --namespace es
-RUN npx turbo run build --filter=./apps/erp
+RUN npm run build:erp
FROM node:22-slim
WORKDIR /repo
diff --git a/apps/mes/Dockerfile b/apps/mes/Dockerfile
index 898db15291..5d6b264fa0 100644
--- a/apps/mes/Dockerfile
+++ b/apps/mes/Dockerfile
@@ -15,7 +15,7 @@ ARG NODE_OPTIONS
ENV NODE_OPTIONS="--max-old-space-size=4096"
# Build only MES and its deps
RUN npx lingui compile --namespace es
-RUN npx turbo run build --filter=./apps/mes
+RUN npm run build:mes
FROM node:22-slim
WORKDIR /repo
diff --git a/package.json b/package.json
index d59e0b820c..dd55b9965a 100755
--- a/package.json
+++ b/package.json
@@ -32,8 +32,8 @@
"private": true,
"scripts": {
"build": "turbo run build",
- "build:app": "turbo run build --filter=!www",
- "build:packages": "turbo run build --filter=./packages/*",
+ "build:erp": "turbo run build --filter=erp",
+ "build:mes": "turbo run build --filter=mes",
"ci:migrations": "npm run -w ci ci:migrations",
"ci:deploy": "npm run -w ci ci:deploy",
"clean": "turbo run clean && rimraf ./node_modules && rimraf ./package-lock.json",