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:
@@ -13,7 +13,7 @@ ENV RAILS_SERVE_STATIC_FILES ${RAILS_SERVE_STATIC_FILES}
|
|||||||
ARG RAILS_ENV=production
|
ARG RAILS_ENV=production
|
||||||
ENV RAILS_ENV ${RAILS_ENV}
|
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 NODE_OPTIONS ${NODE_OPTIONS}
|
||||||
|
|
||||||
ENV BUNDLE_PATH="/gems"
|
ENV BUNDLE_PATH="/gems"
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
FROM chatwoot:development
|
FROM chatwoot:development
|
||||||
|
|
||||||
|
ENV PNPM_HOME="/root/.local/share/pnpm"
|
||||||
|
ENV PATH="$PNPM_HOME:$PATH"
|
||||||
|
|
||||||
RUN chmod +x docker/entrypoints/rails.sh
|
RUN chmod +x docker/entrypoints/rails.sh
|
||||||
|
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|||||||
Reference in New Issue
Block a user