Skip to content

Commit

Permalink
Increase memory available for app build (#278)
Browse files Browse the repository at this point in the history
Frontend dockerization is failing with 

> FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap
out of memory

Testing various values, looks like the frontend build requires ~3100MB
of memory.
The PR grants 4GB to be on the safe side.
  • Loading branch information
dluc authored Dec 4, 2024
1 parent a456f82 commit 24b3519
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion workbench-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ENV VITE_SEMANTIC_WORKBENCH_AUTHORITY=${VITE_SEMANTIC_WORKBENCH_AUTHORITY}
ENV VITE_SEMANTIC_WORKBENCH_CLIENT_ID=${VITE_SEMANTIC_WORKBENCH_CLIENT_ID}

# Build the application
RUN pnpm run build
RUN NODE_OPTIONS=--max-old-space-size=4096 pnpm run build

# Stage 2: Serve the app with Nginx
FROM nginx:alpine
Expand Down

0 comments on commit 24b3519

Please sign in to comment.