diff --git a/Dockerfile b/Dockerfile index c9d671a85..af9840a02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,10 +29,10 @@ RUN apt-mark manual python-minimal # Install requirements separately, because pip understands a git+https url # while setuptools doesn't RUN pip install --upgrade pip -RUN pip install -r /tmp/ironic-python-agent/requirements.txt +RUN pip install --no-cache-dir -r /tmp/ironic-python-agent/requirements.txt # This will succeed because all the dependencies were installed previously -RUN pip install /tmp/ironic-python-agent +RUN pip install --no-cache-dir /tmp/ironic-python-agent # Remove no longer needed packages RUN apt-get -y purge gcc-4.6 gcc python2.7-dev git && \