Following the official building process I get errors related with -fpic
Please update instrucctions for build Linux in these sections:


With those I found in a dockerfile for an ubuntu 20.04 container which works for Ubuntu 22.04
https://github.com/OpenSees/OpenSees/blob/master/docker/Dockerfile.