Update Dockerfile.analyzer
This commit is contained in:
@@ -2,19 +2,17 @@ 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/requirements.txt
|
||||
RUN pip install --no-cache-dir -r /tmp/requirements.txt
|
||||
|
||||
# Copie le script de débogage
|
||||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||
RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
COPY default.yaml /usr/bin/presidio-analyzer/presidio_analyzer/conf/default.yaml
|
||||
|
||||
# Démarre le script de débogage
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
COPY custom_recognizers /usr/bin/presidio-analyzer/custom_recognizers
|
||||
|
||||
# Pas de WORKDIR, COPY ou CMD pour l'instant
|
||||
# Définir le répertoire de travail
|
||||
WORKDIR /usr/bin/presidio-analyzer
|
||||
|
||||
Reference in New Issue
Block a user