Description
Today our Docker image is based on the centos:7
base image. This leaves a large surface area of binaries and libraries that we don’t need, but exposes us to noisy vulnerability scans (with issues that don’t actually impact the security of the image). We haven’t made much of an effort to slim this surface area down.
One reason we chose this image over others (e.g., Ubuntu-derived images) is perceived better support of the JDK, because Red Hat has long been heavily involved in OpenJDK. This reason is a non-factor, now that we use the bundled JDK in the images. There was also a desire to have consistency with other images in the stack. I’m less convinced of the value of this compared to other factors but it is something to keep in our minds.
Note that a non-goal for this issue is to reduce the physical size of the image. While that is something to consider and will likely result from reducing the surface area of the image, it is separate to this issue to consider reducing the physical size of the image.