Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

rajakumar05032000
Copy link
Contributor

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 rajakumar05032000 changed the title Fix - optimized UI dockerfile and removed unnecessary index.html file Fix - optimized UI dockerfile and removed unnecessary index.html file & Reduce docker image size from 1.4 GB to 176MB Apr 1, 2024
@ARajgor
Copy link
Collaborator

ARajgor commented Apr 3, 2024

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

@rajakumar05032000
Copy link
Contributor Author

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

@ARajgor
Copy link
Collaborator

ARajgor commented Apr 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants