I tried building the docker file but I came across:

I tried both ros-humble-ros-gzgarden and ros-humble-ros-gzharmonic on different px4 firmwares but I encountered the same error.
I feel that this error could be related to an ongoing bug: gazebosim/ros_gz#755
Thank you for reading the issue