How to install Python 3.14 in Rocky 9 docker image

In the build part, not sure why you are building as root, and I’d be surprised if openssl resides in /usr/local.

In the make install part (altinstall), running as root, be very careful to know exactly which files it’s going to install, and to where.