I wanted to customize the Corteza application’s frontend. I forked Corteza’s official repository.
To achieve my customization:
- First Attempt (Using Prebuilt Dist File):
- I downloaded the prebuilt
dist
tar file for the frontend directly from their website. - I modified the Dockerfile to use this manually downloaded
dist
file. - I built the Docker image, and it worked perfectly as expected.
- Second Attempt (Customizing the Frontend):
- I cloned the full Corteza project from their GitHub repository.
- I made changes to the frontend code provided in the project.
- I used
yarn
to build the updated frontend, which generated a newdist
directory which gives some error. - I created a new Docker image using my updated
dist
files.
- The Problem:
- When I ran the new Docker image, the application launched, but the frontend was broken.
- It appeared that styles and other assets were not loading properly, resulting in a messy, unstyled interface.
Goal:
I want to correctly build and deploy a customized version of the Corteza frontend with my changes, ensuring that all assets (e.g., styles, scripts) load properly.