mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-23 17:31:33 +08:00
ci: Increase memory limit and disable concurrent builds for esbuild in docker (#9862)
This commit is contained in:
committed by
GitHub
parent
bd2bb4c9a4
commit
974cbe099a
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user