From 396920174708815d3258c1f0ea427b12bfffbdb4 Mon Sep 17 00:00:00 2001 From: opsec-infosec <74446520+opsec-infosec@users.noreply.github.com> Date: Wed, 18 Aug 2021 12:59:00 +0400 Subject: [PATCH] Layer Reduction on pip3 install Combine pip3 installs and add colorama --- Dockerfile.ml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Dockerfile.ml b/Dockerfile.ml index 14b4c2406..0cd8e9ff4 100644 --- a/Dockerfile.ml +++ b/Dockerfile.ml @@ -86,13 +86,14 @@ COPY --from=pytorch /usr/local/lib/python3.6/dist-packages/ /usr/local/lib/pytho # # python pip packages # -RUN pip3 install --no-cache-dir --ignore-installed pybind11 -RUN pip3 install --no-cache-dir --verbose onnx -RUN pip3 install --no-cache-dir --verbose scipy -RUN pip3 install --no-cache-dir --verbose scikit-learn -RUN pip3 install --no-cache-dir --verbose pandas -RUN pip3 install --no-cache-dir --verbose pycuda -RUN pip3 install --no-cache-dir --verbose numba +RUN pip3 install --no-cache-dir --ignore-installed pybind11 && \ + pip3 install --no-cache-dir --verbose onnx && \ + pip3 install --no-cache-dir --verbose scipy && \ + pip3 install --no-cache-dir --verbose scikit-learn && \ + pip3 install --no-cache-dir --verbose pandas && \ + pip3 install --no-cache-dir --verbose pycuda && \ + pip3 install --no-cache-dir --verbose colorama && \ + pip3 install --no-cache-dir --verbose numba #