Skip to content
This repository has been archived by the owner on Jul 26, 2023. It is now read-only.

Cannot allow to specify not to download native-image component #5

Closed
linghengqian opened this issue Feb 3, 2023 · 4 comments
Closed
Assignees

Comments

@linghengqian
Copy link

linghengqian commented Feb 3, 2023

@fniephaus
Copy link
Member

Thanks for raising this issue, @linghengqian. As you found out, native-image is always installed by default and we do not have any plans to change this.

This reduces the size of the final Docker Image because the GraalVM Native Image binary is compiled before starting to package the Docker Image.

I'm not sure I understand: If you build the application with Native Image and Espresso, you no longer need a full GraalVM installation when deploying the application. Are you sure you need a GraalVM installation in your Docker container?

@linghengqian
Copy link
Author

@fniephaus
Copy link
Member

Right, I believe fixing oracle/graal#4555 is the right thing to do here. Until then, your containers may be a bit bigger. As a workaround, you could gu remove native-image again, right after using the GraalVM JDK downloader scripts.

I hope you don't mind if I'm closing this for now.

@fniephaus fniephaus self-assigned this Feb 3, 2023
@linghengqian
Copy link
Author

  • Thanks, I will use gu remove command in Dockerfile.

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

No branches or pull requests

2 participants