Skip to content

Commit 55a3011

Browse files
committed
fix: Increase Node.js heap size for build to prevent OOM
- Set NODE_OPTIONS to --max-old-space-size=2048 during build - Prevents 'JavaScript heap out of memory' error during TypeScript compilation
1 parent 6a7983a commit 55a3011

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN chmod +x ./Docker/scripts/* && dos2unix ./Docker/scripts/*
2828

2929
RUN ./Docker/scripts/generate_database.sh
3030

31-
RUN npm run build
31+
RUN NODE_OPTIONS="--max-old-space-size=2048" npm run build
3232

3333
FROM node:24-alpine AS final
3434

0 commit comments

Comments
 (0)