corretto / corretto-docker

Dockerfiles for Amazon Corretto Official images.
https://hub.docker.com/_/amazoncorretto
MIT No Attribution
152 stars 63 forks source link

JRE only images for other Java versions #194

Closed gitPlatformTests closed 7 months ago

gitPlatformTests commented 7 months ago

Is your feature request related to a problem?

It seems there are JRE images only for java 8 and 11

Describe a solution you would like

Create JRE images for other java versions without the JDK

Describe alternatives you have considered

Looking for an official way to remove it, can I build from your container and remove it? how should I do that?

eastig commented 7 months ago

Hi @gitPlatformTests,

It seems there are JRE images only for java 8 and 11

Only 8 provides JRE. Since JDK 11 JRE has not been provided. This feature was removed from OpenJDK build system. Instead jlink was introduced. You need to use it to create JRE, see https://github.com/corretto/corretto-11/issues/176#issuecomment-805768772

17 and 21 provide slim images which are smaller than others.

benty-amzn commented 7 months ago

See also #41