Closed chgl closed 1 year ago
Excellent, thanks. FYI the master branch is for building the snapshot image, from the source code of opal. The Dockerfile for building the latest image is currently in the branch 4.6.x.
ah well, I'll re-create the branch from 4.6.x rebasing seems too much of a hassle. One sec...
As per https://hub.docker.com/_/openjdk, the OpenJDK image is deprecated:
I've switched to the temurin image in this PR, but any of them should be fine so I'd be OK if another choice is more appropriate.
Per
trivy image
, this reduces the known CVEs in the base image from 730 to 31:Further, slightly changing the order of the apt-get and deleting the apt cache reduces the compressed image size from 508 down to 337 M:
The updated image should be functionally equivalent, however anyone depending on something that is present in the deprecated OpenJDK image that is not present in the eclipse-temurin one may experience breaking changes. I'd expect this not to be too big of an issue and resolvable by apt-get install'ing anything that is missing.