Skip to content

Commit 4b77554

Browse files
fix(js-template): fix memory exhaustion when using wasm (#218)
by default nodejs allocates 10G virtual memory when creating wasm modules, this memory allocation breaks the enclave limit. node's default behavior is disabled by setting the `--disable-wasm-trap-handler` option.
1 parent b3113df commit 4b77554

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/templates/JavaScript/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ WORKDIR /app
33
COPY package*.json ./
44
RUN npm ci
55
COPY . .
6-
ENTRYPOINT ["node", "/app/src/app.js"]
6+
ENTRYPOINT ["node", "--disable-wasm-trap-handler", "/app/src/app.js"]

0 commit comments

Comments
 (0)