Run Java 12 application in Docker

Sasha Shpota :

I took a look at OpenJDK Docker repository and found no JRE image for Java 12. There is one for Java 11 (openjdk:11.0.2-jre), but for 12 there are only JDK images.

Q: How to use OpenJDK JRE 12 to run an application in Docker without using a full JDK image?

Gonzalo Matheu :

AdoptOpenJDK is already providing Java 12 JRE docker images (adoptopenjdk/openjdk12:jre-12.33)

AdoptOpenJDK is a Java community based effort and from its about page:

AdoptOpenJDK.net started in 2017 following years of discussions about the general lack of an open and reproducible build & test system for OpenJDK source across multiple platforms.

And one key point of their mission is:

Provide a reliable source of OpenJDK binaries for all platforms, for the long term future!

There is no pull request for 12 jre on OpenJdk official image repository yet (which is maintained by Docker community.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=68898&siteId=1