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).
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 #673gpg
, which are all just used at image build time to a) fetch the tarball, b) do some verification c) extract the tarballIt 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).