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: pnpm workspace in dockerfiles

Brad Barbina0d3e8057f46
diff --git a/apps/erp/Dockerfile b/apps/erp/Dockerfile
index ad9b850707..f9f7861dda 100644
--- a/apps/erp/Dockerfile
+++ b/apps/erp/Dockerfile
@@ -24,6 +24,8 @@ ENV NODE_ENV=production
ENV PORT=3000
# Install curl for health checks
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
+# Copy workspace root files so pnpm/corepack resolve correctly
+COPY --from=deps /repo/package.json /repo/pnpm-lock.yaml /repo/pnpm-workspace.yaml /repo/.npmrc ./
# Production needs built app, node_modules, and packages (for workspace deps)
COPY --from=deps /repo/node_modules ./node_modules
COPY --from=deps /repo/packages ./packages
diff --git a/apps/mes/Dockerfile b/apps/mes/Dockerfile
index 9ab5a98f88..139e10672d 100644
--- a/apps/mes/Dockerfile
+++ b/apps/mes/Dockerfile
@@ -24,6 +24,8 @@ ENV NODE_ENV=production
ENV PORT=3000
# Install curl for health checks
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
+# Copy workspace root files so pnpm/corepack resolve correctly
+COPY --from=deps /repo/package.json /repo/pnpm-lock.yaml /repo/pnpm-workspace.yaml /repo/.npmrc ./
# Production needs built app, node_modules, and packages (for workspace deps)
COPY --from=deps /repo/node_modules ./node_modules
COPY --from=deps /repo/packages ./packages