Skip to content
Snippets Groups Projects
Commit f95b1570 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Resolve "Fix plugin install in Dockerfile"

parent ed7424ba
No related branches found
No related tags found
1 merge request!1920Resolve "Fix plugin install in Dockerfile"
...@@ -128,8 +128,8 @@ ARG SETUPTOOLS_SCM_PRETEND_VERSION='0.0' ...@@ -128,8 +128,8 @@ ARG SETUPTOOLS_SCM_PRETEND_VERSION='0.0'
RUN pip install ".[parsing,infrastructure,dev]" RUN pip install ".[parsing,infrastructure,dev]"
# Install "default" plugins. TODO: This can be removed once we have proper # Install "default" plugins. TODO: This can be removed once we have a proper
# distributions projects. # distribution project.
RUN ./scripts/install_default_plugins.sh \ RUN ./scripts/install_default_plugins.sh \
RUN ./scripts/generate_docs_artifacts.sh \ RUN ./scripts/generate_docs_artifacts.sh \
...@@ -176,6 +176,11 @@ RUN pip install --progress-bar off --prefer-binary -r requirements.txt ...@@ -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 . COPY --from=dev_python /app/dist/nomad-lab-*.tar.gz .
RUN pip install 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 # Reduce the size of the packages
RUN find /usr/local/lib/python3.9/ -type d -name 'tests' ! -path '*/networkx/*' -exec rm -r '{}' + \ 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 '{}' + \ && find /usr/local/lib/python3.9/ -type d -name 'test' -exec rm -r '{}' + \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment