Skip to content
Snippets Groups Projects
Commit 590675d2 authored by Ahmed Ilyas's avatar Ahmed Ilyas
Browse files

Avoid stripping packages

parent 57b1b8a1
No related branches found
No related tags found
1 merge request!2007Avoid stripping packages
Pipeline #215074 passed
......@@ -199,11 +199,6 @@ RUN pip install nomad-lab-*.tar.gz
COPY default_plugins.txt .
RUN uv pip install -r default_plugins.txt -c requirements.txt
# Reduce the size of the packages
RUN find /usr/local/lib/python3.11/ -type d -name 'tests' ! -path '*/networkx/*' -exec rm -r '{}' + \
&& find /usr/local/lib/python3.11/ -type d -name 'test' -exec rm -r '{}' + \
&& find /usr/local/lib/python3.11/site-packages/ -name '*.so' ! -path '*/h5py/*' ! -path '*/quippy*/*' -print -exec sh -c 'file "{}" | grep -q "not stripped" && strip -s "{}"' \;
# ================================================================================
# We use slim for the final image
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment