ci: Increase memory limit and disable concurrent builds for esbuild in docker (#9862)

This commit is contained in:
Gabriel Luiz Freitas Almeida
2025-09-15 09:57:13 -03:00
committed by GitHub
parent bd2bb4c9a4
commit 974cbe099a
4 changed files with 5 additions and 4 deletions

View File

@ -53,7 +53,7 @@ COPY src/frontend /tmp/src/frontend
WORKDIR /tmp/src/frontend
RUN --mount=type=cache,target=/root/.npm \
npm ci \
&& NODE_OPTIONS="--max-old-space-size=4096" npm run build \
&& NODE_OPTIONS="--max-old-space-size=8192" JOBS=1 npm run build \
&& cp -r build /app/src/backend/langflow/frontend \
&& rm -rf /tmp/src/frontend

View File

@ -55,8 +55,9 @@ COPY ./src /app/src
COPY src/frontend /tmp/src/frontend
WORKDIR /tmp/src/frontend
# Increase memory and disable concurrent builds to avoid esbuild crashes on emulated architectures
RUN npm install \
&& NODE_OPTIONS="--max-old-space-size=4096" npm run build \
&& NODE_OPTIONS="--max-old-space-size=8192" JOBS=1 npm run build \
&& cp -r build /app/src/backend/base/langflow/frontend \
&& rm -rf /tmp/src/frontend

View File

@ -53,7 +53,7 @@ COPY src/frontend /tmp/src/frontend
WORKDIR /tmp/src/frontend
RUN --mount=type=cache,target=/root/.npm \
npm ci \
&& NODE_OPTIONS="--max-old-space-size=4096" npm run build \
&& NODE_OPTIONS="--max-old-space-size=8192" JOBS=1 npm run build \
&& cp -r build /app/src/backend/langflow/frontend \
&& rm -rf /tmp/src/frontend

View File

@ -53,7 +53,7 @@ COPY src/frontend /tmp/src/frontend
WORKDIR /tmp/src/frontend
RUN --mount=type=cache,target=/root/.npm \
npm ci \
&& NODE_OPTIONS="--max-old-space-size=4096" npm run build \
&& NODE_OPTIONS="--max-old-space-size=8192" JOBS=1 npm run build \
&& cp -r build /app/src/backend/langflow/frontend \
&& rm -rf /tmp/src/frontend