How to collect all static assets (js, css) used by discourse

Thank you @schleifer. Your reply is very helpful. However, I still have some follow up questions:

  1. Where I can find the document for hooks like after_assets_precompile? I searched Docker document as well as discourse Github repo but I can’t find any information about it. Do I have to set up the hooks named after_assets_precompile by myself (How to do this?) or it’s already set up by discourse like after_code?

  2. IIUC, my pseudocode would look like

     hooks:
       after_assets_precompile:
         - exec:
             cd: $home
             cmd:
               - enter to the docker container
               - cd to `/var/www/discourse/public/assets/`
               - git add, commit and push to Github repo
    

Thank you.