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.

build: fix docker build for lingui

Brad Barbine9d88caa6a31
diff --git a/apps/erp/Dockerfile b/apps/erp/Dockerfile
index 13f9f5b18d..50e2bca7c5 100644
--- a/apps/erp/Dockerfile
+++ b/apps/erp/Dockerfile
@@ -3,7 +3,7 @@ WORKDIR /repo
# Install specific npm version
RUN npm install -g [email protected]
# Copy root manifests for workspaces
-COPY package.json package-lock.json turbo.json ./
+COPY package.json package-lock.json turbo.json lingui.config.js ./
# Copy only what we need to install and build
COPY apps ./apps
COPY packages ./packages
@@ -14,7 +14,7 @@ FROM deps AS build
ARG NODE_OPTIONS
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=4096"}
# Build only ERP and its deps
-RUN cd apps/erp && npx lingui compile --config ../../lingui.config.js && cd ../..
+RUN npx lingui compile
RUN npx turbo run build --filter=./apps/erp
FROM node:20-slim
diff --git a/apps/mes/Dockerfile b/apps/mes/Dockerfile
index f0efbad2b4..91a6c57567 100644
--- a/apps/mes/Dockerfile
+++ b/apps/mes/Dockerfile
@@ -3,7 +3,7 @@ WORKDIR /repo
# Install specific npm version
RUN npm install -g [email protected]
# Copy root manifests for workspaces
-COPY package.json package-lock.json turbo.json ./
+COPY package.json package-lock.json turbo.json lingui.config.js ./
# Copy only what we need to install and build
COPY apps ./apps
COPY packages ./packages
@@ -14,7 +14,7 @@ FROM deps AS build
ARG NODE_OPTIONS
ENV NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=4096"}
# Build only MES and its deps
-RUN cd apps/mes && npx lingui compile --config ../../lingui.config.js && cd ../..
+RUN npx lingui compile
RUN npx turbo run build --filter=./apps/mes
FROM node:20-slim