From 98a4d811b39f036a6a0999bb167317d0f1a22678 Mon Sep 17 00:00:00 2001 From: Tomas Sanchez Date: Wed, 1 Nov 2023 09:39:13 -0300 Subject: [PATCH] fix(build): spacy model download --- Dockerfile | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9e37ff0..eb5fdcb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,6 +26,6 @@ RUN pip install --disable-pip-version-check "poetry==$POETRY_VERSION" # Project initialization: RUN poetry config virtualenvs.create false \ && poetry install --only main \ - && python -m spacy download es_core_news_lg + && spacy download es_core_news_lg CMD ["poetry", "run", "python","-m", "heimdallr.main"] \ No newline at end of file diff --git a/Makefile b/Makefile index ff54ae5..b79886b 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ dist-clean: clean ## Removes all build and test artifacts and virtual environmen .PHONY: build build: ## Creates a virtual environment and installs development dependencies poetry install - python -m spacy download es_core_news_lg + poetry spacy download es_core_news_lg .PHONY: test test: ## Executes tests cases