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
Branches
No related tags found
1 merge request!309Repo Cleanup
...@@ -8,7 +8,7 @@ ARG INTERNAL_TAG="testing" ...@@ -8,7 +8,7 @@ ARG INTERNAL_TAG="testing"
## ======================================================================================== ## ========================================================================================
FROM ${DOCKER_REGISTRY}debian_base:${INTERNAL_TAG} as builder 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 \ RUN --mount=type=cache,target=/var/cache/apt \
rm -f /etc/apt/apt.conf.d/docker-clean \ rm -f /etc/apt/apt.conf.d/docker-clean \
&& apt-get -yqq update \ && apt-get -yqq update \
...@@ -32,7 +32,7 @@ RUN echo "Part 1: regular spack install (as in containerize)" \ ...@@ -32,7 +32,7 @@ RUN echo "Part 1: regular spack install (as in containerize)" \
git cherry-pick -n $SPACK_CHERRYPICKS ; \ git cherry-pick -n $SPACK_CHERRYPICKS ; \
fi \ fi \
&& cd - \ && 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/bin $SPACK_ROOT/bin \
&& cp -r /tmp/spack-staging/etc $SPACK_ROOT/etc \ && cp -r /tmp/spack-staging/etc $SPACK_ROOT/etc \
&& cp -r /tmp/spack-staging/lib $SPACK_ROOT/lib \ && cp -r /tmp/spack-staging/lib $SPACK_ROOT/lib \
...@@ -171,7 +171,7 @@ FROM builder as staging ...@@ -171,7 +171,7 @@ FROM builder as staging
RUN cd /opt/spack-environment && spack env activate . && spack gc -y RUN cd /opt/spack-environment && spack env activate . && spack gc -y
# Strip all the binaries # Strip all the binaries
# This reduces the image by factor of x2, so worth the effort # 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/* \ RUN find -L /usr/local/* \
-type d -name site-packages -prune -false -o \ -type d -name site-packages -prune -false -o \
-type f -not -name "zdll.lib" -not -name libtensorflow-lite.a \ -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