I have a DockerFile which has command
RUN pip install --index-url=<url> -r requirements.txt
requirements.txt contain all the dependencies. These dependencies are packages and I want always the latest package. Each time even if a single dependency is changed, the image is rebuild and all the dependencies are downloaded and built. Is there a way to update the existing image or create a new image with all the dependencies but do not download the dependencies which have not changed and download only the ones which have changed.