by raesene9 · 9y ago · 0 comments
If you can I'd recommend this as a good practice to reduce these kinds of problems. The fundamental fact is that if you don't have a library installed, you can't be affected by a vulnerability in it. So the smaller your image, the fewer possible avenues for shipping vulnerable libs you'll have and you'll have to spend less time re-building images with updated packages.
However, I intend to validate this presumption in a future project.
Alpine is definitely one of the major points, as well as static binary images and some advice on Dockerfile configuration.