I am using spacy and after installing all the dependencies, I use this command:
spacy download en_core_web_trf
I am running this command while creating a Docker image. I want to reduce the size of the Docker image. I know that when I install dependencies using following command:
pip install --no-cache-dir -r requirements.txt
I have used --no-cache-dir option in order to disable (or clean) the cache of the package manager pip. Now I am confused that how can I also delete the en_core_web_trf .whl file after installing this dependency in order to reduce the Docker image size. The size of the en_core_web_trf .whl is almost 450 - 500 MB. That's why I want to delete it. Can anyone tell me what changes or what additional option I will have to add in the following command in order to delete en_core_web_trf .whl as soon as it is installed.
spacy download en_core_web_trf