Skip to content

Commit 155ccfe

Browse files
fix: update Dockerfile to use node:18.19.1-alpine and remove wasm trap handler flag
1 parent b386da0 commit 155ccfe

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
/etc/resolv.conf
7878
binary-fs: true
7979
fs-dir: /app
80-
heap: 7G
80+
heap: 1G
8181
dlopen: 1
8282
mprotect: 1
8383
secrets:

dapp/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FROM node:20.19-alpine3.22
1+
FROM node-18.19.1-alpine
22
WORKDIR /app
33
COPY package*.json ./
44
RUN npm ci --production
55
COPY ./src .
6-
ENTRYPOINT [ "node", "--disable-wasm-trap-handler", "/app/app.js" ]
6+
ENTRYPOINT [ "node", "/app/app.js" ]

deployment-dapp/src/singleFunction/deployApp.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ 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 --disable-wasm-trap-handler /app/app.js',
35-
heapSize: 7516192768,
34+
entrypoint: 'node /app/app.js',
35+
heapSize: 1073741824,
3636
fingerprint,
3737
};
3838
const app = {

0 commit comments

Comments
 (0)