Skip to content
Snippets Groups Projects
Commit 61b8bbee authored by Ujwal Kundur's avatar Ujwal Kundur Committed by Wouter Deconinck
Browse files

Fix 4

Closes Issue #110
parent 65ed180c
No related branches found
No related tags found
1 merge request!309Repo Cleanup
This commit is part of merge request !309. Comments created here will be created in the context of that merge request.
......@@ -8,7 +8,7 @@ ARG INTERNAL_TAG="testing"
## ========================================================================================
FROM ${DOCKER_REGISTRY}debian_base:${INTERNAL_TAG} as builder
## instal some extra spack dependencies
## install some extra spack dependencies
RUN --mount=type=cache,target=/var/cache/apt \
rm -f /etc/apt/apt.conf.d/docker-clean \
&& apt-get -yqq update \
......@@ -32,7 +32,7 @@ RUN echo "Part 1: regular spack install (as in containerize)" \
git cherry-pick -n $SPACK_CHERRYPICKS ; \
fi \
&& cd - \
&& mkdir -p $SPACK_ROOT/opt/spack \
&& mkdir -p $SPACK_ROOT \
&& cp -r /tmp/spack-staging/bin $SPACK_ROOT/bin \
&& cp -r /tmp/spack-staging/etc $SPACK_ROOT/etc \
&& cp -r /tmp/spack-staging/lib $SPACK_ROOT/lib \
......@@ -171,7 +171,7 @@ FROM builder as staging
RUN cd /opt/spack-environment && spack env activate . && spack gc -y
# Strip all the binaries
# This reduces the image by factor of x2, so worth the effort
# note that we do not strip python libraries as can cause issues in some cases
# note that we do not strip python libraries as it can cause issues in some cases
RUN find -L /usr/local/* \
-type d -name site-packages -prune -false -o \
-type f -not -name "zdll.lib" -not -name libtensorflow-lite.a \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment