diff --git a/Dockerfile.analyzer b/Dockerfile.analyzer index 649e46e..f660fad 100644 --- a/Dockerfile.analyzer +++ b/Dockerfile.analyzer @@ -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