Closed davispuh closed 1 month ago
Hi @davispuh
We actually run RAILS_ENV=production bundle exec rake assets:precompile
while building the Discourse package that we later on use to build the container image. Please note that, under the hood, this runs the /opt/bitnami/discourse/node_modules/.bin/ember build -prod
command.
Is there a reason why you had to run the command again? Is it a consequence of adding custom plugins or similar?
I don't have any reason to run it, it just does it automatically, but I found that I can pass DISCOURSE_PRECOMPILE_ASSETS=no
env var and then it's skipped.
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.
Name and Version
bitnami/discourse:3
What is the problem this feature will solve?
Currently when Ember/Babel/Webpack is optimizing JS files then that requires a lot of RAM and CPU time. Also while it's doing that VM is completely unresponsive. I'm not able to use this image in a VM since it's getting OOM killed.
What is the feature you are proposing to solve the problem?
Include already optimized JS files in image itself so users don't need to invoke this step.
What alternatives have you considered?
No response