Skip to content

Commit 5c25322

Browse files
committed
feat: increase node memory limit in build
1 parent d4e0c08 commit 5c25322

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ FROM node:lts AS builder
44

55
WORKDIR /app
66

7+
ENV NODE_OPTIONS=--max-old-space-size=4096
78
# 结合 deploy/nginx-example.conf 配置测试用
89
ENV PASTE_API=/api/paste
910

0 commit comments

Comments
 (0)