diff options
Diffstat (limited to 'docker-files/ubuntu.Dockerfile')
-rw-r--r-- | docker-files/ubuntu.Dockerfile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docker-files/ubuntu.Dockerfile b/docker-files/ubuntu.Dockerfile index 05186eaf..33771452 100644 --- a/docker-files/ubuntu.Dockerfile +++ b/docker-files/ubuntu.Dockerfile @@ -49,7 +49,7 @@ RUN apt-get update \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN python${PYTHON_VERSION} -m venv venv +RUN python${PYTHON_VERSION} -m venv --without-pip venv COPY requirements.txt docker-requirements.txt webui-requirements.txt optional-requirements.txt ./ @@ -57,7 +57,7 @@ COPY requirements.txt docker-requirements.txt webui-requirements.txt optional-re # BUILD: Install the minimal image deps FROM build as buildMinimal -RUN /venv/bin/python3 -m pip install --no-cache-dir \ +RUN python${PYTHON_VERSION} -m pip install --target="/venv/lib/python${PYTHON_VERSION}/site-packages" \ # Note: requirements.txt is include by dep -r docker-requirements.txt \ -r webui-requirements.txt @@ -66,7 +66,8 @@ RUN /venv/bin/python3 -m pip install --no-cache-dir \ # BUILD: Install all the deps FROM build as buildFull -RUN /venv/bin/python3 -m pip install --no-cache-dir \ +RUN python${PYTHON_VERSION} -m pip install --target="/venv/lib/python${PYTHON_VERSION}/site-packages" \ + # Note: requirements.txt is include by dep -r optional-requirements.txt ############################################################################## |