Skip to content

Commit 9c706e7

Browse files
committed
increase memory
1 parent c0cd993 commit 9c706e7

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,11 @@ ARG SANDBOX_HOST_NAME
2121
ARG SANDBOX_PORT
2222
ARG FIREBASE_CONFIG
2323
ARG DOCS_BASE_URL
24+
ARG NODE_OPTIONS
2425

2526
RUN if [ "$DOCS_BASE_URL" == "null" ]; \
2627
then npm run build:app; \
27-
else NODE_OPTIONS="--max-old-space-size=4096" npm run build; \
28+
else npm run build; \
2829
fi
2930

3031
FROM node:24.1.0-alpine3.21 AS server

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ services:
1212
- SANDBOX_PORT=${SANDBOX_PORT:-8090}
1313
- FIREBASE_CONFIG=${FIREBASE_CONFIG:-}
1414
- DOCS_BASE_URL=${DOCS_BASE_URL:-null}
15+
- NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=6144"}
1516
restart: unless-stopped
1617
environment:
1718
- SELF_HOSTED=true
@@ -26,6 +27,7 @@ services:
2627
- LOG_URL=${LOG_URL:-null}
2728
- VALKEY_HOST=valkey
2829
- VALKEY_PORT=6379
30+
- NODE_OPTIONS=${NODE_OPTIONS:-"--max-old-space-size=6144"}
2931
volumes:
3032
- ./assets:/srv/build/assets
3133
depends_on:

0 commit comments

Comments
 (0)