Skip to content

Commit dbee580

Browse files
authored
build(frontend): Increase build process memory limit to 4 GiB (#10861)
Increase memory limit of frontend build process to 4GiB to fix out-of-memory build failures
1 parent 0325ec0 commit dbee580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autogpt_platform/frontend/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN if [ -f .env.production ]; then \
2626
fi
2727
RUN pnpm run generate:api
2828
# In CI, we want NEXT_PUBLIC_PW_TEST=true during build so Next.js inlines it
29-
RUN if [ "$NEXT_PUBLIC_PW_TEST" = "true" ]; then NEXT_PUBLIC_PW_TEST=true pnpm build; else pnpm build; fi
29+
RUN if [ "$NEXT_PUBLIC_PW_TEST" = "true" ]; then NEXT_PUBLIC_PW_TEST=true NODE_OPTIONS="--max-old-space-size=4096" pnpm build; else NODE_OPTIONS="--max-old-space-size=4096" pnpm build; fi
3030

3131
# Prod stage - based on NextJS reference Dockerfile https://github.com/vercel/next.js/blob/64271354533ed16da51be5dce85f0dbd15f17517/examples/with-docker/Dockerfile
3232
FROM node:21-alpine AS prod

0 commit comments

Comments
 (0)