Update Dockerfile.analyzer

This commit is contained in:
Nacim
2025-06-23 11:22:26 +02:00
committed by GitHub
parent d59ca97e50
commit 873d80a519

View File

@@ -2,17 +2,19 @@ FROM mcr.microsoft.com/presidio-analyzer:latest
USER root
# Installer les dépendances système (curl était pour des téléchargements, pas critique ici)
# Installer les dépendances système
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
# Installer le modèle spaCy français
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
# **** NOUVEAU : Installer Gunicorn ****
# Ajoutez cette ligne pour installer gunicorn
# Installer Gunicorn (si ce n'est pas déjà fait et si vous ne l'aviez pas dans un requirements.txt)
RUN pip install --no-cache-dir gunicorn
# **** NOUVEAU : Installer PyYAML ****
RUN pip install --no-cache-dir PyYAML
# Copier votre fichier default.yaml dans le répertoire de configuration de Presidio.
COPY default.yaml /usr/bin/presidio-analyzer/presidio_analyzer/conf/default.yaml