Philip Harman
09/06/2023, 6:50 PMRUN python -m spacy download en_core_web_sm
Nate
09/06/2023, 6:51 PMRUN pip install ".[extra1,extra2]"
or
RUN pip install -r requirements.txt
?Philip Harman
09/06/2023, 6:55 PMNate
09/06/2023, 7:00 PMpip install ".[dev]"
so this would install the requirements.txt
as well as whats in here
in my mind, you shouldnt have to edit the Dockerfile when a particular python dependency changes, your Dockerfile should just pip install
a file (pyproject.toml or requirements.txt) so that your image has those deps baked in, and rebuild the image when your deps change (i.e. when you edit the requirements.txt that hold your dependencies)Philip Harman
09/06/2023, 7:58 PM