Trying to upgrade apache version on docker container

Hi All,

Currently, I am using Joomla:php.7.3.apache version to build my Joomla site. I want to upgrade Apache version that that install in this container.
Currently it installed Apache2.4.38(Debian).

Want to update to the latest version. But the current image that I use is inherited the php and apache version from the official packages of the PHP project.

And they suggested another way around might could be to upgrade the apache version from your docker file and uninstall the inherited apache version.

Can someone please suggest the best way.

Or Please suggest the command that to upgrade the apache version and from the docker file and uninstall the inherited apache version.

Thanks,
Chiranjeevi.

2.4.38 is at the moment the latest version you get from Debian. I don’t think there is an easy way to replace it without writing new Dockerfiles and creating new images for both PHP and Joomla.
For what reason do you want to replace Apache? It is from an active Debian distro and receives all the security patches.