From 280ea05e07b802c223280f10ea6d33141fbf2b8b Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Sun, 5 Jun 2022 19:11:56 +0000 Subject: [PATCH] Use `python -m pip install` instead of using `pip` directly --- containers/jug/dev.Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/containers/jug/dev.Dockerfile b/containers/jug/dev.Dockerfile index 064e3604e..385096846 100644 --- a/containers/jug/dev.Dockerfile +++ b/containers/jug/dev.Dockerfile @@ -132,10 +132,11 @@ COPY requirements.txt /usr/local/etc/requirements.txt RUN --mount=type=cache,target=/var/cache/pip \ echo "Installing additional python packages" \ && cd /opt/spack-environment && spack env activate . \ - && pip install --trusted-host pypi.org \ - --trusted-host files.pythonhosted.org \ - --cache-dir /var/cache/pip \ - --requirement /usr/local/etc/requirements.txt + && python -m pip install \ + --trusted-host pypi.org \ + --trusted-host files.pythonhosted.org \ + --cache-dir /var/cache/pip \ + --requirement /usr/local/etc/requirements.txt ## Including some small fixes: ## - Somehow PODIO env isn't automatically set, -- GitLab