External Email - Use Caution        

Dear, 

I'm attempting to create a docker version of the FreeSurfer Development version following the steps shown in https://surfer.nmr.mgh.harvard.edu/fswiki/BuildGuide. Nevertheless, I'm encountering some issues, probably related to how I set up the docker, but they are blocking me. 

I attach the Dockerfile I'm trying to make (up to the step where it fails). 

The error raised by the make command is:

[ 57%] Building CXX object mris_convert/CMakeFiles/mris_convert.dir/mris_convert.cpp.o
In file included from /usr/include/ITK-5.2/gifti_io.h:4,
                 from /root/freesurfer/include/gifti.h:26,
                 from /root/freesurfer/mris_convert/mris_convert.cpp:40:
/usr/include/ITK-5.2/itk_zlib.h:33: error: "ITK_USE_SYSTEM_ZLIB" redefined [-Werror]
   33 | #define ITK_USE_SYSTEM_ZLIB
      |
<command-line>: note: this is the location of the previous definition
cc1plus: all warnings being treated as errors
make[2]: *** [mris_convert/CMakeFiles/mris_convert.dir/build.make:80: mris_convert/CMakeFiles/mris_convert.dir/mris_convert.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:10396: mris_convert/CMakeFiles/mris_convert.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

Last, see I'm interested in making the docker base image in Ubuntu 22.04. 

Thanks in advance, 

Óscar