devika icon indicating copy to clipboard operation
devika copied to clipboard

Fix - optimized UI dockerfile and removed unnecessary index.html file & Reduce docker image size from 1.4 GB to 176MB

Open rajakumar05032000 opened this issue 1 year ago • 3 comments

Changes :

-> Updated the UI docker file. Earlier UI docker image used to consume 1.42 GB, now optimised to consume 176 MB. -> Used Multi-stage build ( following industry standards) to optimise space and performance. -> Added necessary comments for easy understanding. -> Removed unnecessary index.html file from static folder ( which will cause white blank screen, if app is build & preview ed rather than just running dev ). -> Added nodejs adapter in svelete.config.js to accommodate smooth build process & deployment of UI.

Docker Image size reduction : cropped

All the above mentioned changes are tested thoroughly & it is working smoothly as expected !

Thank you !

rajakumar05032000 avatar Mar 31 '24 10:03 rajakumar05032000

are check with the latest commits is it working or not if the docker is working then merge right away

ARajgor avatar Apr 03 '24 20:04 ARajgor

I have re-tested with latest code changes and it works smoothly as expected. Can you guys review & merge it. Thanks!

rajakumar05032000 avatar Apr 05 '24 11:04 rajakumar05032000

Mentioning #317 cause both are docker related. can you guys check your changes and tell me it's working with every scenario. Front-end backend no issues.

ARajgor avatar Apr 12 '24 03:04 ARajgor