• Marcus Cobden's avatar
    Rework UI build to improve caching and fix packaging issue · c03e6a0e
    Marcus Cobden authored
    Stop baking the toolchain and dependencies into the build image.
    Instead, run the install step each time, but use volume mounts or
    CircleCI caching to keep the happy path fast.
    
    Previously, some parts of the client (UI) directory were baked into the build
    image, and some parts were mounted or copied into the build environment.
    As a result, files baked into the build image require a two-step
    update for changes to take effect in CI.
    
    Now, for dockerised builds, we pre-install very little into the build
    image and mount the whole directory into the build environment.
    However, we do overlay a volume on the node_modules folder to allow the
    standard build toolchain to be separate from the host build toolchain.
    
    Non-dockerised builds (e.g. CI) are now more similar to the dockerised
    versions.
    c03e6a0e