From 873d80a519e5c14c60a0cd480fa7f9ddbf30e98d Mon Sep 17 00:00:00 2001 From: Nacim Date: Mon, 23 Jun 2025 11:22:26 +0200 Subject: [PATCH] Update Dockerfile.analyzer --- Dockerfile.analyzer | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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