Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 40c334e

Browse files
pin also en_core_web_sm model
1 parent 147a0e4 commit 40c334e

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ COPY pyproject.toml poetry.lock* /app/
1818

1919
# Configure Poetry and install dependencies
2020
RUN poetry config virtualenvs.create false && \
21-
poetry install --no-dev && \
22-
python -m spacy download en_core_web_sm
21+
poetry install --no-dev
2322

2423
# Copy the rest of the application
2524
COPY . /app

poetry.lock

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ presidio-anonymizer = "==2.2.357"
3939
onnxruntime = "==1.20.1"
4040
onnx = "==1.17.0"
4141
blis = "==1.1.0"
42+
en-core-web-sm = {url = "https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.8.0/en_core_web_sm-3.8.0-py3-none-any.whl"}
4243

4344
[tool.poetry.group.dev.dependencies]
4445
pytest = "==8.3.4"

0 commit comments

Comments
 (0)