Skip to content

Commit c422f87

Browse files
committed
fix: increase memory limit for docker build
1 parent 3cbe08f commit c422f87

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ RUN --mount=type=cache,id=pnpm-store,target=/pnpm/store \
2121
COPY . .
2222
RUN pnpm mock:gen
2323

24+
# change back to production for build
25+
ENV NODE_ENV=production
26+
27+
# Increase memory limit for Node.js during build
28+
ENV NODE_OPTIONS="--max-old-space-size=4096"
29+
2430
# Build Nuxt (SSR)
2531
RUN pnpm build
2632

0 commit comments

Comments
 (0)