How do I update Wordpress App PHP version?

I am using UCS 5.0.6 and I would like to be able to update the php version for the Wordpress app. Some of PHP plugins I would like to use require/recommend a newer version.

How can I achieve this? Is trying to update the docker image for the Wordpress app the way to go? Or is there another way?