nkubana0 commited on
Commit
ae16645
·
1 Parent(s): fe5826e

fix: remove easyocr to reduce Docker image size

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -29,7 +29,7 @@ RUN pip install --no-cache-dir -r requirements.txt && \
29
  find /usr/local/lib/python3.12 -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
30
 
31
  # Download spaCy model (pinned to match spacy==3.7.2)
32
- RUN python -m spacy download en_core_web_sm
33
 
34
  # Copy project files
35
  COPY . .
 
29
  find /usr/local/lib/python3.12 -name "__pycache__" -type d -exec rm -rf {} + 2>/dev/null || true
30
 
31
  # Download spaCy model (pinned to match spacy==3.7.2)
32
+ RUN pip install --no-cache-dir https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl
33
 
34
  # Copy project files
35
  COPY . .