carlossg / docker-maven

Official Docker image with Maven
Apache License 2.0
528 stars 424 forks source link

Question to openjdk-17, why FROM oraclelinux8? #252

Closed sterlp closed 2 years ago

sterlp commented 2 years ago

Hello guys,

I wonder if where is a particular reason why the java-17 image: https://github.com/carlossg/docker-maven/blob/master/openjdk-17/Dockerfile#L1

depends on: FROM openjdk:17-jdk-oraclelinux8

As java 11 and also the java-17-slim are using a different one. I just wanted to update from 11 to 17 and discovered that my install script now fails with openjdk-17 but not openjdk-11 and not openjdk-17-slim, as "apt-get" is missing.

Thanks

Paul

carlossg commented 2 years ago

this comes from upstream openjdk images. ie. openjdk:17 comes from oracle linux https://github.com/docker-library/official-images/blob/master/library/openjdk#L122