mriqc icon indicating copy to clipboard operation
mriqc copied to clipboard

Is it possible to not hardcode HOME in Dockerfile?

Open yarikoptic opened this issue 7 months ago • 2 comments

ATM https://github.com/nipreps/mriqc/blob/master/Dockerfile#L164

ENV HOME="/home/mriqc"

which then gets inherited also within singularity container we convert docker container into in https://github.com/ReproNim/containers so it is "hardcoded" even if I would run in singularity with current user, and thus having no /home/mriqc. As a result we get

>      File "/opt/conda/lib/python3.11/pathlib.py", line 1116, in mkdir
>        os.mkdir(self, mode)
>    OSError: [Errno 30] Read-only file system: '/home/mriqc/.cache'

yarikoptic avatar Jul 09 '24 04:07 yarikoptic