Installing HDF5 with H5C in a Linux Container (Ubuntu/Debian preferred)

I help researchers with their computing needs. We run their code in Dockerfiles. They need to be able to run HDF5 with HF5C and this is where I get confused. I can find images out there that say they have HDF5, but none of them run with HF5C. It’s not clear to me after looking at the documentation for more than an hour, how this would be done.

I see a lot of relevant Debian packages: https://packages.debian.org/source/oldstable/hdf5

but I don’t quite get which ones I’d need to get them up and running.

Any help that one could provide, understanding that I’m familiar with Linux and Docker but not HDF5 or Fortran, would be helpful.