diff --git a/Dockerfile b/Dockerfile
index a59347f2a3b294aec3fc197cc147648128511eaa..7414d37c016e2da30dbfe25822dc880f6cf1c1da 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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