What situation are you in where security vulnerabilities in the Docker image are important to fix, but updating from End-of-Life support for the language isn't?
(Or even where security of an old Docker image is important, but "has 0 tests" isn't a concern?).
That being said, using a newer underlying Linux image for a Docker image is as copying the Dockerfile and building it, isn't it?