Skip to content

Commit d479e16

Browse files
fix: remove mprotect option and optimize memory configuration (#73)
- Update Node.js to version 22-alpine3.22 - Reduce heap memory from 7G to 1G for better performance - Remove mprotect option to reduce memory usage in dapp deployment - Update heapSize in deploy script to 1G
1 parent d4891c8 commit d479e16

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ jobs:
7575
/etc/resolv.conf
7676
binary-fs: true
7777
fs-dir: /app
78-
heap: 7G
78+
heap: 1G
7979
dlopen: 1
80-
mprotect: 1
80+
mprotect: 0
8181
secrets:
8282
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
8383
docker-password: ${{ secrets.DOCKERHUB_PAT }}

dapp/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20.19-alpine3.22
1+
FROM node:22-alpine3.22
22
WORKDIR /app
33
COPY package*.json ./
44
RUN npm ci --production

deployment-dapp/src/singleFunction/deployApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const deployApp = async ({
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")
3434
entrypoint: 'node --disable-wasm-trap-handler /app/app.js',
35-
heapSize: 7516192768,
35+
heapSize: 1073741824, // 1G
3636
fingerprint,
3737
};
3838
const app = {

0 commit comments

Comments
 (0)