chore: fix pnpm path in rails and memory issue during vite build (#10366)

- Fix pnpm path in rails
- Fix memory issue during vite build


Fixes https://github.com/chatwoot/chatwoot/issues/10356
This commit is contained in:
Vishnu Narayanan
2024-10-29 16:41:12 +05:30
committed by GitHub
parent aa57431c48
commit 87719a8fcd
2 changed files with 4 additions and 1 deletions

View File

@@ -13,7 +13,7 @@ ENV RAILS_SERVE_STATIC_FILES ${RAILS_SERVE_STATIC_FILES}
ARG RAILS_ENV=production
ENV RAILS_ENV ${RAILS_ENV}
ARG NODE_OPTIONS="--openssl-legacy-provider"
ARG NODE_OPTIONS="--max-old-space-size=4096 --openssl-legacy-provider"
ENV NODE_OPTIONS ${NODE_OPTIONS}
ENV BUNDLE_PATH="/gems"

View File

@@ -1,5 +1,8 @@
FROM chatwoot:development
ENV PNPM_HOME="/root/.local/share/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN chmod +x docker/entrypoints/rails.sh
EXPOSE 3000