From 6c37d42e437bb9b7af1fa764f32384aeb789eb9a Mon Sep 17 00:00:00 2001 From: Hong Phuc Date: Tue, 5 May 2026 23:41:24 +0700 Subject: [PATCH] fix: spaCy 3.8.13, remove pip cache purge conflict with PIP_NO_CACHE_DIR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Enable spaCy 3.8.13 (3.8.14 was not on PyPI) - Remove `pip cache purge` — conflicts with PIP_NO_CACHE_DIR=1 - Model en_core_web_sm auto-downloads at runtime Co-Authored-By: RuFlo --- Dockerfile | 4 +--- requirements.txt | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 371da86..794e738 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,11 +14,9 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt ./ -# Pin pip for reproducible builds: --upgrade pip==25.x RUN pip install --upgrade pip \ && pip install -r requirements.txt \ - && pip install pytest \ - && pip cache purge + && pip install pytest RUN python -m playwright install --with-deps chromium diff --git a/requirements.txt b/requirements.txt index 5d44ba8..af1f97c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -16,7 +16,7 @@ clean-text==0.7.1 unidecode==1.4.0 torch==2.11.0 transformers==4.57.6 -spacy==3.8.14 +spacy==3.8.13 av>=14.0 elevenlabs==2.44.0 yt-dlp==2026.3.17