Update Dockerfile.analyzer
This commit is contained in:
@@ -2,17 +2,19 @@ FROM mcr.microsoft.com/presidio-analyzer:latest
|
|||||||
|
|
||||||
USER root
|
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/*
|
RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Installer le modèle spaCy français
|
# Installer le modèle spaCy français
|
||||||
RUN pip install --no-cache-dir \
|
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
|
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 ****
|
# Installer Gunicorn (si ce n'est pas déjà fait et si vous ne l'aviez pas dans un requirements.txt)
|
||||||
# Ajoutez cette ligne pour installer gunicorn
|
|
||||||
RUN pip install --no-cache-dir gunicorn
|
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.
|
# 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
|
COPY default.yaml /usr/bin/presidio-analyzer/presidio_analyzer/conf/default.yaml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user