Merge pull request #105 from MRNafisiA/main

increase the memory limit to prevent crashing during build time.
This commit is contained in:
Chamika J
2025-05-30 10:15:47 +05:30
committed by GitHub

View File

@@ -12,7 +12,7 @@ COPY . .
RUN echo "window.VITE_API_URL='${VITE_API_URL:-http://backend:3000}';" > ./public/env-config.js && \
echo "window.VITE_SOCKET_URL='${VITE_SOCKET_URL:-ws://backend:3000}';" >> ./public/env-config.js
RUN npm run build
RUN NODE_OPTIONS="--max-old-space-size=4096" npm run build
FROM node:22-alpine AS production