Update Dockerfile.analyzer

This commit is contained in:
Nacim
2025-06-16 04:35:50 +02:00
committed by GitHub
parent 24918bcb0a
commit f9de54301e

View File

@@ -9,6 +9,8 @@ RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir \
https://github.com/explosion/spacy-models/releases/download/fr_core_news_sm-3.7.0/fr_core_news_sm-3.7.0-py3-none-any.whl
# Configuration pour supporter le français
RUN echo 'nlp_engine_name: spacy\nmodels:\n - lang_code: en\n model_name: en_core_web_lg\n - lang_code: fr\n model_name: fr_core_news_sm' > /usr/bin/presidio-analyzer/presidio_analyzer/conf/default.yaml
# Installer les dépendances supplémentaires
COPY requirements.txt /tmp/