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

[Bug]: Temurin images contain packages only used at container build time #675

Open
jerboaa opened this issue Oct 22, 2024 · 2 comments · May be fixed by #676
Open

[Bug]: Temurin images contain packages only used at container build time #675

jerboaa opened this issue Oct 22, 2024 · 2 comments · May be fixed by #676
Labels
bug Something isn't working

Comments

@jerboaa
Copy link

jerboaa commented Oct 22, 2024

Please add the exact image (with tag) that you are using

eclipse-temurin:jdk-17 (any Temurin container, really)

Please add the version of Docker you are running

Any

What happened?

The images contain build-only tools such as tar, wget and with #673 gpg, which are all just used at image build time to a) fetch the tarball, b) do some verification c) extract the tarball

It would be better to extract those dependencies into a builder container and build the container and then use COPY --from <BUILDER_CONTAINER>. Then the JDK container would have fewer dependencies (and only dependencies of the JDK).

@jerboaa jerboaa added the bug Something isn't working label Oct 22, 2024
@gdams
Copy link
Member

gdams commented Oct 22, 2024

Totally agree, I was discussing this with @tellison earlier, my proposal is to switch to a multistage build process for JDK24+

@jerboaa
Copy link
Author

jerboaa commented Oct 22, 2024

Yes.

@gdams gdams linked a pull request Oct 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants