Skip to content

Commit a083165

Browse files
committed
Increase max-old-space-size for the Docker images
1 parent 7664951 commit a083165

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

apps/chaingraph-backend/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ RUN turbo prune "@badaitech/chaingraph-backend" --docker
1313
# Second stage: Install dependencies and build
1414
FROM base AS builder
1515

16+
ENV NODE_OPTIONS="--max-old-space-size=8192"
17+
1618
COPY --from=pruner /app/out/json/ .
1719
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml
1820

apps/chaingraph-frontend/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ RUN turbo prune "@badaitech/chaingraph-frontend" --docker
1414
FROM base AS builder
1515

1616
ARG NODE_ENV=production
17+
ENV NODE_OPTIONS="--max-old-space-size=8192"
1718

1819
COPY --from=pruner /app/out/json/ .
1920
COPY --from=pruner /app/out/pnpm-lock.yaml ./pnpm-lock.yaml

0 commit comments

Comments
 (0)