Uploaded image for project: 'Red Hat OpenShift Data Science'
  1. Red Hat OpenShift Data Science
  2. RHODS-7565

Dashboard: Remove Frontend NPM Modules from Image Build

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Blocker Blocker
    • None
    • None
    • UI
    • False
    • None
    • False
    • Testable
    • No
    • No
    • No
    • Pending
    • None
    • RHODS 1.25

      When we build the ODH Dashboard frontend for the prod image that we use in RHODS, we end up with a bunch of dev dependencies polluting the output that we ship.

      This output image we ship has a ton of extra overhead for the frontend, this should all be gone when the build is complete.

      My suspected solution would be to build everything in the image and then rm out all of the node_modules and source code. We should likely only need to ship the `public` folder as that's all a production server needs.

      We'll need to make sure any map files or additional resources are working if they are included – we don't have to change the build for prod process in the dashboard, except for what ends up in the image.

              lferrnan@redhat.com Lucas Fernandez Aragon
              aballantyne Andrew Ballantyne
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: