Skip to content

Commit 72eb658

Browse files
fix: add --disable-wasm-trap-handler flag to resolve memory range error
1 parent d8d2baf commit 72eb658

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dapp/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 --production
55
COPY ./src .
6-
ENTRYPOINT ["node", "/app/app.js"]
6+
ENTRYPOINT ["node", "--disable-wasm-trap-handler", "/app/app.js"]

deployment-dapp/src/singleFunction/deployApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const deployApp = async ({
3131
const mrenclave = {
3232
framework: 'SCONE' as any, // workaround framework not auto capitalized
3333
version: `v${sconifyVersion.split('.').slice(0, 2).join('.')}`, // extracts "vX.Y" from "X.Y.Z-vN" format (e.g., "5.9.1-v16" → "v5.9")
34-
entrypoint: 'node /app/app.js',
34+
entrypoint: 'node --disable-wasm-trap-handler /app/app.js',
3535
heapSize: 1073741824,
3636
fingerprint,
3737
};

0 commit comments

Comments
 (0)