From 07ddaea0ea174e30153401579ca142be6ba14798 Mon Sep 17 00:00:00 2001 From: Stephen Date: Thu, 10 May 2018 15:34:56 -0400 Subject: [PATCH] Use python -m pip to invoke pip --- docker/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 491b165..42448dc 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -4,13 +4,13 @@ FROM debian:latest RUN apt-get -y update && \ apt-get -y install python-pip python3-pip && \ apt-get -y clean && \ - pip2 install --upgrade --upgrade-strategy=eager --no-cache-dir pip stored && \ - pip3 install --upgrade --upgrade-strategy=eager --no-cache-dir pip stored + python2 -m pip install --upgrade --upgrade-strategy=eager --no-cache-dir pip stored && \ + python3 -m pip install --upgrade --upgrade-strategy=eager --no-cache-dir pip stored # we install these packages at runtime in the entrypoint, but might as well fetch the latest version into the container RUN mkdir /pip && \ - pip2 download -d /pip tensorflow keras h5py model-converters && \ - pip3 download -d /pip tensorflow keras h5py model-converters + python2 -m pip download -d /pip tensorflow keras h5py model-converters && \ + python3 -m pip download -d /pip tensorflow keras h5py model-converters # note: don't install model-converters here, since it declares a dependency on tensorflow and keras (so those will be installed too) # which is a waste of space since they get reinstalled in the entrypoint