We are not allowed to put ParMetis in a docker image: https://scicomp.ethz.ch/wiki/ParMETIS/License
so you would have to build parmetis yourself if you want to use it.
Here is a minimal docker file:
FROM ghcr.io/fenics/dolfinx/dolfinx:stable
RUN rm -rf /usr/local/dolfinx-real/
ENV PETSC_ARCH=linux-gnu-real64-64
ENV PETSC_DIR=/usr/local/petsc
RUN python3 -m pip uninstall -y petsc4py slepc4py
RUN python3 -m pip install petsc4py
RUN python3 -m pip install slepc4py
RUN git clone --branch=v0.8.0 --single-branch https://github.com/FEniCS/dolfinx.git
RUN cmake -G Ninja -B build-dir-real -DCMAKE_INSTALL_PREFIX=/usr/local/dolfinx-real -S ./dolfinx/cpp/
RUN cmake --build build-dir-real --parallel 4
RUN cmake --install build-dir-real
ENV PKG_CONFIG_PATH=/usr/local/dolfinx-real/lib/pkgconfig:$PKG_CONFIG_PATH \
PYTHONPATH=/usr/local/dolfinx-real/lib/python3.10/dist-packages:$PYTHONPATH \
LD_LIBRARY_PATH=/usr/local/dolfinx-real/lib:$LD_LIBRARY_PATH
RUN python3 -m pip install ./dolfinx/python/ --no-build-isolation -v --upgrade
RUN python3 -c "from mpi4py import MPI; import dolfinx; print(dolfinx.__version__, dolfinx.default_scalar_type); from petsc4py import PETSc; print(PETSc.IntType)"