containers: retain shallow git data (#37734)

This commit is contained in:
Jonathon Anderson
2023-07-12 16:03:10 -05:00
committed by GitHub
parent c8026c3c87
commit 90208da8a5
3 changed files with 14 additions and 8 deletions

View File

@@ -23,7 +23,7 @@ RUN ln -s $SPACK_ROOT/share/spack/docker/entrypoint.bash \
RUN mkdir -p /root/.spack \
&& cp $SPACK_ROOT/share/spack/docker/modules.yaml \
/root/.spack/modules.yaml \
&& rm -rf /root/*.* /run/nologin $SPACK_ROOT/.git
&& rm -rf /root/*.* /run/nologin
# [WORKAROUND]
# https://superuser.com/questions/1241548/