From f95b157051f7bb42fc36507f58c88b06b8df688b Mon Sep 17 00:00:00 2001 From: Lauri Himanen <lauri.himanen@gmail.com> Date: Wed, 19 Jun 2024 13:54:49 +0000 Subject: [PATCH] Resolve "Fix plugin install in Dockerfile" --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 53f5249c15..71cbe79c02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -128,8 +128,8 @@ ARG SETUPTOOLS_SCM_PRETEND_VERSION='0.0' RUN pip install ".[parsing,infrastructure,dev]" -# Install "default" plugins. TODO: This can be removed once we have proper -# distributions projects. +# Install "default" plugins. TODO: This can be removed once we have a proper +# distribution project. RUN ./scripts/install_default_plugins.sh \ RUN ./scripts/generate_docs_artifacts.sh \ @@ -176,6 +176,11 @@ RUN pip install --progress-bar off --prefer-binary -r requirements.txt COPY --from=dev_python /app/dist/nomad-lab-*.tar.gz . RUN pip install nomad-lab-*.tar.gz +# Install "default" plugins. TODO: This can be removed once we have a proper +# distribution project. +COPY scripts/install_default_plugins.sh ./scripts/install_default_plugins.sh +RUN ./scripts/install_default_plugins.sh \ + # Reduce the size of the packages RUN find /usr/local/lib/python3.9/ -type d -name 'tests' ! -path '*/networkx/*' -exec rm -r '{}' + \ && find /usr/local/lib/python3.9/ -type d -name 'test' -exec rm -r '{}' + \ -- GitLab