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

Merge branch 'uv-in-base' into 'develop'

Use uv in base builder

See merge request !1977
parents 5371352c 7e8cd7c2
No related branches found
No related tags found
1 merge request!1977Use uv in base builder
Pipeline #212897 passed
...@@ -61,12 +61,13 @@ RUN apt-get update \ ...@@ -61,12 +61,13 @@ RUN apt-get update \
WORKDIR /app WORKDIR /app
ENV PIP_NO_CACHE_DIR=1 # Install UV
RUN pip install uv
# Python environment # Python environment
COPY requirements.txt . COPY requirements.txt .
RUN pip install --progress-bar off --prefer-binary -r requirements.txt RUN uv pip install -q -r requirements.txt
FROM base_python AS dev_python FROM base_python AS dev_python
...@@ -196,7 +197,7 @@ RUN pip install nomad-lab-*.tar.gz ...@@ -196,7 +197,7 @@ RUN pip install nomad-lab-*.tar.gz
# Install default plugins. TODO: This can be removed once we have a proper # Install default plugins. TODO: This can be removed once we have a proper
# distribution project. # distribution project.
COPY default_plugins.txt . COPY default_plugins.txt .
RUN pip install -r default_plugins.txt -c requirements.txt RUN uv pip install -r default_plugins.txt -c requirements.txt
# 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 '{}' + \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment