Philip Harman09/06/2023, 6:50 PM
RUN python -m spacy download en_core_web_sm
Nate09/06/2023, 6:51 PM
RUN pip install ".[extra1,extra2]"
RUN pip install -r requirements.txt
Philip Harman09/06/2023, 6:55 PM
Nate09/06/2023, 7:00 PM
so this would install the
pip install ".[dev]"
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
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 Harman09/06/2023, 7:58 PM