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.
TypeScript ai-agentsbill-of-materialserpinventory-managementleanmanufacturingmanufacturing-execution-systemmcp-servermesmrpopen-source-erppostgresqlproduction-planningqmsquality-management-systemreact-routerself-hostedsupabasetraceabilitytypescript
fix(docker): the app images carry pg for the migrations gate (#2033)
Sidaf277b2bea1e
diff --git a/Dockerfile b/Dockerfileindex 985e128c93..1b01d8bfbf 100644--- a/Dockerfile+++ b/Dockerfile@@ -103,7 +103,9 @@ FROM bootstrap AS ops# The app's production dependencies, installed on their own: what the built# server loads from node_modules. The bundle inlines everything else, so that# is @carbon/serve, which `pnpm start` runs from source, and whatever the-# bundle leaves external (erp's AI SDK). Every package lists in+# bundle leaves external (erp's AI SDK). @carbon/database's too: the chart's+# wait-for-migrations init container runs this image in packages/database+# and loads pg from there. Every package lists in# `dependencies` only what its runtime code imports, so no build tool, CLI or# test runner is installed here. Its own stage, so the files it deletes leave# no layer behind in `runner`.@@ -112,7 +114,8 @@ ARG APPARG SOURCEMAPSRUN rm -rf node_modules apps/*/node_modules packages/*/node_modules docs/content/node_modulesRUN --mount=type=cache,id=pnpm-store,target=/pnpm/store,sharing=locked \- pnpm install --prod --frozen-lockfile --prefer-offline --ignore-scripts --filter-prod "${APP}..."+ pnpm install --prod --frozen-lockfile --prefer-offline --ignore-scripts \+ --filter-prod "${APP}..." --filter-prod @carbon/databaseCOPY --from=build /repo/apps/${APP}/build ./apps/${APP}/buildRUN find node_modules -type f \( -name '*.d.ts' -o -name '*.d.mts' \-o -name '*.d.cts' -o -name '*.md' \) -delete 2>/dev/null || true ; \