From 87f1391114b811caa5506f750ecc29c70a1a61ce Mon Sep 17 00:00:00 2001 From: Ruairidh MacLeod Date: Fri, 20 Sep 2024 15:48:15 +0100 Subject: [PATCH] remove some directories to reduce image size --- software/Freesurfer/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/software/Freesurfer/Dockerfile b/software/Freesurfer/Dockerfile index 53fc289..17290b7 100644 --- a/software/Freesurfer/Dockerfile +++ b/software/Freesurfer/Dockerfile @@ -79,11 +79,18 @@ RUN : \ && echo "${FREESURFER_DEB_MD5} ${deb}" | md5sum -c \ && dpkg -i "${deb}" \ && rm "${deb}" \ + && cd "${FREESURFER_HOME}" \ + && rm -rf \ + average/mult-comp-cor \ + lib/cuda \ + lib/qt \ + subjects \ + trctrain \ && : RUN : \ && mkdir /safe_data /safe_outputs /scratch \ && useradd ces-user \ && : - + USER ces-user