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

Reduce Image Size #5

Open
ryanemerson opened this issue Aug 29, 2019 · 3 comments
Open

Reduce Image Size #5

ryanemerson opened this issue Aug 29, 2019 · 3 comments
Labels
enhancement New feature or request

Comments

@ryanemerson
Copy link
Collaborator

ryanemerson commented Aug 29, 2019

The current image is pulling in lots of unnecessary dependencies, we should remove these at build time.

We should also consider utilising jlink to create a minimal JDK.

@ryanemerson ryanemerson added the enhancement New feature or request label Aug 29, 2019
@tristantarrant
Copy link
Member

this is a list of unneeded packages:
adwaita-cursor-theme
adwaita-icon-theme
at-spi2-core
at-spi2-atk atk
cairo
gdk-pixbuf2
gdk-pixbuf2-modules
glib-networking
gsettings-desktop-schemas
gtk3
gtk-update-icon-cache
hicolor-icon-theme
libsoup
pango
rest

@ryanemerson
Copy link
Collaborator Author

The above packages are no longer present when utilising java-11-openjdk-headless vs java-11-openjdk.

@ryanemerson
Copy link
Collaborator Author

The image size is now down to 366MB. The next steps will be to utilise a runtime created via Jlink to further reduce the size.

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

No branches or pull requests

2 participants