Files
Presidio/Dockerfile.analyzer
2025-06-23 13:10:27 +02:00

16 lines
540 B
Docker

FROM mcr.microsoft.com/presidio-analyzer:latest
USER root
# 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
COPY requirements.txt /tmp/
RUN pip install --no-cache-dir -r /tmp/requirements.txt
COPY default.yaml /usr/bin/presidio-analyzer/presidio_analyzer/conf/default.yaml